Create alert rule historical versions

post/projects/{projectId}/alertRules/{alertRuleId}/history
Internal-Use Only

Creates the project history versions for an alert rule.

Request Samples

1

Response Samples

1{
2 "projectId": "string",
3 "name": "string",
4 "description": "string",
5 "kpi": "string",
6 "severity": "string",
7 "operator": "string",
8 "value": 0,
9 "violations": 0,
10 "modelRole": "string",
11 "triggered": true,
12 "versionNum": 0,
13 "alertRuleId": "string",
14 "ruleCreationTimeStamp": "2019-08-24T14:15:22Z",
15 "ruleModifiedTimeStamp": "2019-08-24T14:15:22Z",
16 "ruleCreatedBy": "string"
17}

Path Parameters

NameTypeRequiredDescription
alertRuleId
string
true

The ID of an alert rule.

projectId
string
true

The ID of a project in the common model repository.

Responses

StatusMeaningDescription
201CreatedThe request succeeded.Schema
400Bad RequestThe request was invalid.Schema
404Not FoundThe project ID is not valid.Schema