Create a project alert rule

post/projects/{projectId}/alertRules

Creates an alert rule for a project.

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}

Path Parameters

NameTypeRequiredDescription
projectId
string
true

The ID of a project in the common model repository.

Responses

StatusMeaningDescription
201Created

The request succeeded.

HeadersSchema
400Bad Request

The project ID was not specified.

Schema
404Not Found

The project ID is not valid.

Schema