-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Update scheduledQueryRule_API.json To use the right error contract #11898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1ac2357
4b14a00
be58c30
e6fae47
2e8067a
c6189e5
d23f09e
ca0910f
78b5813
504c205
98e27ba
efea44f
6d579df
088cea0
bb6a56f
5e18e0e
00ccd7c
527c5db
0395af7
e541ec8
cd57300
c35edf4
39fb8a0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -333,6 +333,10 @@ | |
| "type": "string", | ||
| "description": "The description of the scheduled query rule." | ||
| }, | ||
| "displayName": { | ||
| "type": "string", | ||
| "description": "The display name of the alert rule" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In cases where the rule was migrated from the Legacy Log Analytic API |
||
| }, | ||
| "severity": { | ||
| "type": "number", | ||
| "description": "Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest", | ||
|
|
@@ -369,6 +373,11 @@ | |
| "format": "duration", | ||
| "description": "The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size)." | ||
| }, | ||
| "OverrideQueryTimeRange": { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a fix to s360 violation : |
||
| "type": "string", | ||
| "format": "duration", | ||
| "description": "If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods)" | ||
| }, | ||
| "targetResourceTypes": { | ||
| "type": "array", | ||
| "items": { | ||
|
|
@@ -405,6 +414,16 @@ | |
| "properties" | ||
| ], | ||
| "properties": { | ||
| "kind": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value." | ||
| }, | ||
| "etag": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. " | ||
| }, | ||
| "properties": { | ||
| "x-ms-client-flatten": true, | ||
| "$ref": "#/definitions/ScheduledQueryRuleProperties", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,7 +68,7 @@ | |
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| "$ref": "#/definitions/ErrorContract" | ||
| } | ||
| }, | ||
| "200": { | ||
|
|
@@ -120,7 +120,7 @@ | |
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| "$ref": "#/definitions/ErrorContract" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a fix to s360 violation : |
||
| } | ||
| }, | ||
| "200": { | ||
|
|
@@ -169,7 +169,7 @@ | |
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| "$ref": "#/definitions/ErrorContract" | ||
| } | ||
| }, | ||
| "200": { | ||
|
|
@@ -209,7 +209,7 @@ | |
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| "$ref": "#/definitions/ErrorContract" | ||
| } | ||
| }, | ||
| "200": { | ||
|
|
@@ -248,7 +248,7 @@ | |
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| "$ref": "#/definitions/ErrorContract" | ||
| } | ||
| }, | ||
| "200": { | ||
|
|
@@ -294,7 +294,7 @@ | |
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| "$ref": "#/definitions/ErrorContract" | ||
| } | ||
| }, | ||
| "200": { | ||
|
|
@@ -347,6 +347,16 @@ | |
| "type": "string" | ||
| }, | ||
| "description": "Resource tags" | ||
| }, | ||
| "kind": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value." | ||
| }, | ||
| "etag": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. " | ||
| } | ||
| }, | ||
| "required": [ | ||
|
|
@@ -520,10 +530,13 @@ | |
| "ConditionalOperator": { | ||
| "type": "string", | ||
| "enum": [ | ||
| "GreaterThanOrEqual", | ||
| "LessThanOrEqual", | ||
| "GreaterThan", | ||
| "LessThan", | ||
| "Equal" | ||
| ], | ||
| "default": "GreaterThanOrEqual", | ||
| "x-ms-enum": { | ||
| "name": "ConditionalOperator", | ||
| "modelAsString": true | ||
|
|
@@ -536,6 +549,7 @@ | |
| "Consecutive", | ||
| "Total" | ||
| ], | ||
| "default": "Consecutive", | ||
| "x-ms-enum": { | ||
| "name": "metricTriggerType", | ||
| "modelAsString": true | ||
|
|
@@ -575,6 +589,10 @@ | |
| "type": "string", | ||
| "description": "The description of the Log Search rule." | ||
| }, | ||
| "displayName": { | ||
| "type": "string", | ||
| "description": "The display name of the alert rule" | ||
| }, | ||
| "enabled": { | ||
| "type": "string", | ||
| "description": "The flag which indicates whether the Log Search rule is enabled. Value should be true or false", | ||
|
|
@@ -765,6 +783,16 @@ | |
| "criteria" | ||
| ] | ||
| }, | ||
| "ErrorContract": { | ||
| "description": "Describes the format of Error response.", | ||
| "type": "object", | ||
| "properties": { | ||
| "error": { | ||
| "description": "The error details.", | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "ErrorResponse": { | ||
| "description": "Describes the format of Error response.", | ||
| "type": "object", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.