sonar-stream-rule-command-templates
Enumerate the command templates a stream rule's commands can be built from.
The id is what sonar-insert-stream-rule-command-batch and sonar-update-stream-rule-command-batch take as template_id, and config_specs says what args that template expects. Use template_id 1 to write a command as free-form query text instead.
sonar-stream-rule-command-templates [field_type=VALUE]
- field_type=VALUE
- Optional. Filter by the field type a template applies to: DATE, IP, PORT, STRING, SHORT, INT, LONG, MD5, URL or ETC
Output Fields
| Field | Type | Name | Description |
|---|---|---|---|
| id | Integer | ID | e.g. 9. Pass this as template_id when writing a command |
| name | String | Name | e.g. Port match. Template name |
| field_type | String | Field type | e.g. PORT. Field type the template applies to |
| description | String | Description | Template description |
| query | String | Query | Query the template expands to, with its arguments left as placeholders |
| query2 | String | Inverted query | The negated form of the same template, used when the command sets invert to true |
| config_specs | List | Config specs | The arguments this template expects, which is what goes in the args field |