DryRunResult

Updated at:

Parameter

Type

Description

Example

object

The validation result returned when manageAlertRules is called with dryRun=true. This call does not write to the database, trigger template synchronization, or produce any other side effects.

exitCode

integer

The exit code. A value of 0 indicates that the validation passed. A value of 1 indicates that the request was rejected by business rules. For specific reasons, see violations. A value of 2 indicates that the request structure cannot be parsed and rule validation cannot be performed.

1

result

string

The text representation of the result. A value of ok indicates that the validation passed, and rejected indicates that the request was rejected by business rules. This field is empty when the exit code is 2, which means the request structure cannot be parsed.

rejected

violations

array

The list of violations. Each violation consists of three elements: field, message, and suggestion, which represent the path of the violated field, the violation description, and the remediation suggestion, respectively. This array is empty when the exit code is 0 (passed). All violations are listed when the exit code is 1 (rejected by business rules). The location and cause of the unparseable fields are provided when the exit code is 2 (unparseable request structure).

[{"field":"schedule.intervalSecs","message":"schedule interval must be a multiple of 15 seconds","suggestion":"must satisfy: 15-86400 seconds and a multiple of 15"}]

DryRunViolation

The detailed description of a violation that caused the validation failure.