sonar-update-stream-rule-command-batch
Update an existing command of stream rules from input records.
Input record:
- guid (required) - Target rule GUID
- ordinal (required) - Ordinal of the target command in the rule body
- command (optional) - Replacement command for that ordinal
- template_id (optional) - Command template ID from sonar-stream-rule-command-templates. 1 is free-form
- field_name (optional) - Field the command template applies to
- args (optional) - Template argument map
- invert (optional) - true or false. Uses the template's inverted form (query2)
Giving command resets template_id, field_name and args to defaults unless they are given too.
sonar-update-stream-rule-command-batch [run=VALUE]
- run=VALUE
- Optional. Update rule only if value is 't'
Output Fields
| Field | Type | Name | Description |
|---|---|---|---|
| _status | String | Status | e.g. success. One of success (written), applicable (checks passed but run=t was not given, so nothing was written), or failure - see _error |
| _error | String | Error | e.g. Stream rule not found. Reason the record was rejected |