Skip to content

Commit dedd0ef

Browse files
moshemalMoshe Malka
andauthored
[Hub Generated] Review request for Microsoft.Insights to add version preview/2020-05-01-preview (#10891)
* change enum operator and failingPeriods type * add 2020-05-preview Co-authored-by: Moshe Malka <[email protected]>
1 parent ededa40 commit dedd0ef

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

specification/monitor/resource-manager/Microsoft.Insights/preview/2020-05-01-preview/scheduledQueryRule_API.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@
511511
"LessThanOrEqual"
512512
],
513513
"x-ms-enum": {
514-
"name": "Operator",
514+
"name": "conditionOperator",
515515
"modelAsString": true
516516
},
517517
"description": "The criteria operator."
@@ -526,11 +526,15 @@
526526
"description": "The minimum number of violations required within the selected lookback time window required to raise an alert.",
527527
"properties": {
528528
"numberOfEvaluationPeriods": {
529-
"type": "number",
529+
"type": "integer",
530+
"format": "int64",
531+
"default": 1,
530532
"description": "The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1"
531533
},
532534
"minFailingPeriodsToAlert": {
533-
"type": "number",
535+
"type": "integer",
536+
"format": "int64",
537+
"default": 1,
534538
"description": "The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1"
535539
}
536540
}
@@ -558,7 +562,7 @@
558562
"Exclude"
559563
],
560564
"x-ms-enum": {
561-
"name": "operator",
565+
"name": "dimensionOperator",
562566
"modelAsString": true
563567
}
564568
},

specification/monitor/resource-manager/readme.python.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Generate all API versions currently shipped for this package
3030

3131
```yaml $(multiapi) && !$(track2)
3232
batch:
33+
- tag: package-2020-05-preview
3334
- tag: package-2020-01-01-preview-only
3435
- tag: package-2019-10-17-preview-only
3536
- tag: package-2019-06-01-only
@@ -54,6 +55,7 @@ batch:
5455
```yaml $(multiapi) && $(track2)
5556
clear-output-folder: true
5657
batch:
58+
- tag: package-2020-05-preview
5759
- tag: package-2020-01-01-preview-only
5860
- tag: package-2019-10-17-preview-only
5961
- tag: package-2019-06-01-only
@@ -82,6 +84,19 @@ clear-output-folder: false
8284
perform-load: false
8385
```
8486

87+
### Tag: package-2020-05-preview and python
88+
89+
These settings apply only when `--tag=package-2020-05-preview --python` is specified on the command line.
90+
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
91+
92+
``` yaml $(tag) == 'package-2020-05-preview'
93+
namespace: $(python-base-namespace).v2020_05_01_preview
94+
output-folder: $(python-sdks-folder)/$(python-base-folder)/v2020_05_01_preview
95+
python:
96+
namespace: $(python-base-namespace).v2020_05_01_preview
97+
output-folder: $(python-sdks-folder)/$(python-base-folder)/v2020_05_01_preview
98+
```
99+
85100
### Tag: package-2020-01-01-preview-only and python
86101

87102
These settings apply only when `--tag=package-2020-01-01-preview-only --python` is specified on the command line.

0 commit comments

Comments
 (0)