Methods
getEventPolicies
List the summary information for all event policies within a subscription
GET /eventPolicies/v2
Response
Unique reference for this policy
Possible values: length ≥ 1
Name of the event policy. Must be unique.
Possible values: length ≥ 1
Description of the event policy
Possible values: length ≥ 0
True if this event policy is enabled and thus eligible to be matched to alerts
Actions taken when events match condition filter
Name of the user who created the policy
Possible values: length ≥ 1
The time when this policy was created in a RFC 3339 format timestamp
The time when this policy was created in a RFC 3339 format timestamp. Set to created time if this policy has never been updated
The name of the user who last modified this policy. Set to creator if this policy has never been updated
Possible values: length ≥ 1
The time when this policy was last run in a RFC 3339 format timestamp. This parameter is omitted if the policy has never been run
The execution order of this policy relative to the other policies in the system
Status Code
Successful request
Invalid request
Unauthorized
Not authorized
[ { "id": "123-abc", "name": "SamplePolicy", "description": "Sample policy description", "enabled": true, "actions": { "suppress": { "enabled": true, "suppressCondition": "XinY", "identicalEvents": 1, "timePeriod": 120, "timeUnits": "seconds" }, "enrich": { "enabled": false }, "runbook": { "enabled": false } }, "author": "user@example.com", "created": "2017-03-10T10:02:47.297Z", "lastUpdated": "2017-03-10T10:03:24.672Z", "lastUpdatedBy": "user@example.com", "lastRun": 0 } ]
Request
Custom Headers
Allowable values: [
application/json
,text/plain
]
Event policy payload
Unique reference for this policy
Possible values: length ≥ 1
Unique name of the event policy. Note this is required when creating a policy (POST) but not on an update (PUT).
Possible values: length ≥ 1
Default:
SamplePolicy
Description of the event policy
Possible values: length ≥ 0
Default:
Sample policy description
True if this event policy is enabled and will be considered when processing events
Default:
false
Actions taken when events match condition filter
Name of the user who created the policy. Stores a value based off API key if not specified.
Possible values: length ≥ 0
Default:
The time when this policy was created in a RFC 3339 format timestamp
The time when this policy was created in a RFC 3339 format timestamp. Set to created time if this policy has never been updated
The name of the user who last modified this policy. Set to creator if this policy has never been updated
Possible values: length ≥ 1
The time when this policy was last run in a RFC 3339 format timestamp. This parameter is omitted if the policy has never been run
The execution order of this policy relative to the other policies in the system
If this is set to true, the policy applies to all events and any custom conditions are ignored. Either applyAll or conditions must be specified
Default:
false
Response
Unique reference for this policy
Possible values: length ≥ 1
Unique name of the event policy. Note this is required when creating a policy (POST) but not on an update (PUT).
Possible values: length ≥ 1
Description of the event policy
Possible values: length ≥ 0
True if this event policy is enabled and will be considered when processing events
Actions taken when events match condition filter
Name of the user who created the policy. Stores a value based off API key if not specified.
Possible values: length ≥ 0
The time when this policy was created in a RFC 3339 format timestamp
The time when this policy was created in a RFC 3339 format timestamp. Set to created time if this policy has never been updated
The name of the user who last modified this policy. Set to creator if this policy has never been updated
Possible values: length ≥ 1
The time when this policy was last run in a RFC 3339 format timestamp. This parameter is omitted if the policy has never been run
The execution order of this policy relative to the other policies in the system
If this is set to true, the policy applies to all events and any custom conditions are ignored. Either applyAll or conditions must be specified
Status Code
Policy successfully created
Invalid request
Unauthorized
Not authorized
Already exists
No Sample Response
updateEventPolicy
Replace the policy with the policy payload provided. Note the conditions array is replaced by the received conditions array. Conditions are not merged.
PUT /eventPolicies/v2/{id}
Request
Custom Headers
Allowable values: [
application/json
,text/plain
]
Path Parameters
Policy reference ID. This is returned by the list policies GET and uniquely identifies the policy.
Event policy payload
Unique reference for this policy
Possible values: length ≥ 1
Unique name of the event policy. Note this is required when creating a policy (POST) but not on an update (PUT).
Possible values: length ≥ 1
Default:
SamplePolicy
Description of the event policy
Possible values: length ≥ 0
Default:
Sample policy description
True if this event policy is enabled and will be considered when processing events
Default:
false
Actions taken when events match condition filter
Name of the user who created the policy. Stores a value based off API key if not specified.
Possible values: length ≥ 0
Default:
The time when this policy was created in a RFC 3339 format timestamp
The time when this policy was created in a RFC 3339 format timestamp. Set to created time if this policy has never been updated
The name of the user who last modified this policy. Set to creator if this policy has never been updated
Possible values: length ≥ 1
The time when this policy was last run in a RFC 3339 format timestamp. This parameter is omitted if the policy has never been run
The execution order of this policy relative to the other policies in the system
If this is set to true, the policy applies to all events and any custom conditions are ignored. Either applyAll or conditions must be specified
Default:
false
Response
Unique reference for this policy
Possible values: length ≥ 1
Unique name of the event policy. Note this is required when creating a policy (POST) but not on an update (PUT).
Possible values: length ≥ 1
Description of the event policy
Possible values: length ≥ 0
True if this event policy is enabled and will be considered when processing events
Actions taken when events match condition filter
Name of the user who created the policy. Stores a value based off API key if not specified.
Possible values: length ≥ 0
The time when this policy was created in a RFC 3339 format timestamp
The time when this policy was created in a RFC 3339 format timestamp. Set to created time if this policy has never been updated
The name of the user who last modified this policy. Set to creator if this policy has never been updated
Possible values: length ≥ 1
The time when this policy was last run in a RFC 3339 format timestamp. This parameter is omitted if the policy has never been run
The execution order of this policy relative to the other policies in the system
If this is set to true, the policy applies to all events and any custom conditions are ignored. Either applyAll or conditions must be specified
Status Code
Successful request
Policy was not updated
Unauthorized
Not authorized
Unable to locate policy
Cannot rename to the name of a policy that already exists
No Sample Response
Request
Custom Headers
Allowable values: [
application/json
,text/plain
]
Path Parameters
Policy reference ID. This is returned by the list policies GET and uniquely identifies the policy.
Response
Unique reference for this policy
Possible values: length ≥ 1
Unique name of the event policy. Note this is required when creating a policy (POST) but not on an update (PUT).
Possible values: length ≥ 1
Description of the event policy
Possible values: length ≥ 0
True if this event policy is enabled and will be considered when processing events
Actions taken when events match condition filter
Name of the user who created the policy. Stores a value based off API key if not specified.
Possible values: length ≥ 0
The time when this policy was created in a RFC 3339 format timestamp
The time when this policy was created in a RFC 3339 format timestamp. Set to created time if this policy has never been updated
The name of the user who last modified this policy. Set to creator if this policy has never been updated
Possible values: length ≥ 1
The time when this policy was last run in a RFC 3339 format timestamp. This parameter is omitted if the policy has never been run
The execution order of this policy relative to the other policies in the system
If this is set to true, the policy applies to all events and any custom conditions are ignored. Either applyAll or conditions must be specified
Status Code
Successful request
Unauthorized
Not authorized
Unable to locate policy
No Sample Response
changePoliciesExecOrder
Sets the new order on a list of policies in a subscription.
PUT /eventPolicies/v2/executionOrder