Create alert rule historical versions

post/projects/{projectId}/alertRules/{alertRuleId}/history

Creates the project history versions for an alert rule.

Request Samples

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
projectId
string
true

The ID of a project in the common model repository.

alertRuleId
string
true

The ID of an alert rule.

Responses

StatusMeaningDescription
201Created

The request succeeded.

Schema
400Bad Request

The request was invalid.

Schema
404Not Found

The project ID is not valid.

Schema