|
543 | 543 | }, |
544 | 544 | "description": "An alert rule." |
545 | 545 | }, |
| 546 | + "MetricAlertPropertiesPatch": { |
| 547 | + "properties": { |
| 548 | + "description": { |
| 549 | + "type": "string", |
| 550 | + "description": "the description of the metric alert that will be included in the alert email." |
| 551 | + }, |
| 552 | + "severity": { |
| 553 | + "type": "integer", |
| 554 | + "format": "int32", |
| 555 | + "description": "Alert severity {0, 1, 2, 3, 4}" |
| 556 | + }, |
| 557 | + "enabled": { |
| 558 | + "type": "boolean", |
| 559 | + "description": "the flag that indicates whether the metric alert is enabled." |
| 560 | + }, |
| 561 | + "scopes": { |
| 562 | + "type": "array", |
| 563 | + "items": { |
| 564 | + "type": "string" |
| 565 | + }, |
| 566 | + "description": "the list of resource id's that this metric alert is scoped to." |
| 567 | + }, |
| 568 | + "evaluationFrequency": { |
| 569 | + "type": "string", |
| 570 | + "format": "duration", |
| 571 | + "description": "how often the metric alert is evaluated represented in ISO 8601 duration format." |
| 572 | + }, |
| 573 | + "windowSize": { |
| 574 | + "type": "string", |
| 575 | + "format": "duration", |
| 576 | + "description": "the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold." |
| 577 | + }, |
| 578 | + "targetResourceType": { |
| 579 | + "type": "string", |
| 580 | + "description": "the resource type of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria." |
| 581 | + }, |
| 582 | + "targetResourceRegion": { |
| 583 | + "type": "string", |
| 584 | + "description": "the region of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria." |
| 585 | + }, |
| 586 | + "criteria": { |
| 587 | + "$ref": "#/definitions/MetricAlertCriteria", |
| 588 | + "description": "defines the specific alert criteria information." |
| 589 | + }, |
| 590 | + "autoMitigate": { |
| 591 | + "type": "boolean", |
| 592 | + "description": "the flag that indicates whether the alert should be auto resolved or not. The default is true." |
| 593 | + }, |
| 594 | + "actions": { |
| 595 | + "type": "array", |
| 596 | + "items": { |
| 597 | + "$ref": "#/definitions/MetricAlertAction" |
| 598 | + }, |
| 599 | + "description": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved." |
| 600 | + }, |
| 601 | + "lastUpdatedTime": { |
| 602 | + "readOnly": true, |
| 603 | + "type": "string", |
| 604 | + "format": "date-time", |
| 605 | + "description": "Last time the rule was updated in ISO8601 format." |
| 606 | + } |
| 607 | + }, |
| 608 | + "description": "An alert rule properties for patch." |
| 609 | + }, |
546 | 610 | "MetricAlertResource": { |
547 | 611 | "type": "object", |
548 | 612 | "allOf": [ |
|
572 | 636 | }, |
573 | 637 | "properties": { |
574 | 638 | "x-ms-client-flatten": true, |
575 | | - "$ref": "#/definitions/MetricAlertProperties", |
| 639 | + "$ref": "#/definitions/MetricAlertPropertiesPatch", |
576 | 640 | "description": "The alert rule properties of the resource." |
577 | 641 | } |
578 | 642 | }, |
|
0 commit comments