Skip to content

Commit ff5340b

Browse files
author
SDK Automation
committed
Generated from f99c05d07817bc049fdba480edc0dc7c2c9d0a53
chnage description
1 parent 1dc72f5 commit ff5340b

16 files changed

+242
-24
lines changed

sdk/monitor/arm-monitor/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Microsoft
3+
Copyright (c) 2020 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/monitor/arm-monitor/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
9898

9999
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
100100

101-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmonitor%2Farm-monitor%2FREADME.png)
101+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/monitor/arm-monitor/README.png)

sdk/monitor/arm-monitor/src/models/actionGroupsMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export {
7676
ScaleAction,
7777
ScaleCapacity,
7878
ScaleRule,
79+
ScaleRuleMetricDimension,
7980
Schedule,
8081
SmsReceiver,
8182
Source,
@@ -86,5 +87,6 @@ export {
8687
VoiceReceiver,
8788
WebhookNotification,
8889
WebhookReceiver,
90+
WebtestLocationAvailabilityCriteria,
8991
WorkspaceInfo
9092
} from "../models/mappers";

sdk/monitor/arm-monitor/src/models/activityLogAlertsMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export {
7575
ScaleAction,
7676
ScaleCapacity,
7777
ScaleRule,
78+
ScaleRuleMetricDimension,
7879
Schedule,
7980
SmsReceiver,
8081
Source,
@@ -85,5 +86,6 @@ export {
8586
VoiceReceiver,
8687
WebhookNotification,
8788
WebhookReceiver,
89+
WebtestLocationAvailabilityCriteria,
8890
WorkspaceInfo
8991
} from "../models/mappers";

sdk/monitor/arm-monitor/src/models/alertRulesMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export {
7676
ScaleAction,
7777
ScaleCapacity,
7878
ScaleRule,
79+
ScaleRuleMetricDimension,
7980
Schedule,
8081
SmsReceiver,
8182
Source,
@@ -86,5 +87,6 @@ export {
8687
VoiceReceiver,
8788
WebhookNotification,
8889
WebhookReceiver,
90+
WebtestLocationAvailabilityCriteria,
8991
WorkspaceInfo
9092
} from "../models/mappers";

sdk/monitor/arm-monitor/src/models/autoscaleSettingsMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export {
7575
ScaleAction,
7676
ScaleCapacity,
7777
ScaleRule,
78+
ScaleRuleMetricDimension,
7879
Schedule,
7980
SmsReceiver,
8081
Source,
@@ -85,5 +86,6 @@ export {
8586
VoiceReceiver,
8687
WebhookNotification,
8788
WebhookReceiver,
89+
WebtestLocationAvailabilityCriteria,
8890
WorkspaceInfo
8991
} from "../models/mappers";

sdk/monitor/arm-monitor/src/models/diagnosticSettingsCategoryOperationsMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export {
7474
ScaleAction,
7575
ScaleCapacity,
7676
ScaleRule,
77+
ScaleRuleMetricDimension,
7778
Schedule,
7879
SmsReceiver,
7980
Source,
@@ -84,5 +85,6 @@ export {
8485
VoiceReceiver,
8586
WebhookNotification,
8687
WebhookReceiver,
88+
WebtestLocationAvailabilityCriteria,
8789
WorkspaceInfo
8890
} from "../models/mappers";

sdk/monitor/arm-monitor/src/models/diagnosticSettingsOperationsMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export {
7474
ScaleAction,
7575
ScaleCapacity,
7676
ScaleRule,
77+
ScaleRuleMetricDimension,
7778
Schedule,
7879
SmsReceiver,
7980
Source,
@@ -84,5 +85,6 @@ export {
8485
VoiceReceiver,
8586
WebhookNotification,
8687
WebhookReceiver,
88+
WebtestLocationAvailabilityCriteria,
8789
WorkspaceInfo
8890
} from "../models/mappers";

sdk/monitor/arm-monitor/src/models/index.ts

Lines changed: 111 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,26 @@ export interface ScaleCapacity {
6060
default: string;
6161
}
6262

63+
/**
64+
* Specifies an auto scale rule metric dimension.
65+
*/
66+
export interface ScaleRuleMetricDimension {
67+
/**
68+
* Name of the dimension.
69+
*/
70+
dimensionName: string;
71+
/**
72+
* the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to
73+
* any of the values. 'NotEquals' being not equal to all of the values. Possible values include:
74+
* 'Equals', 'NotEquals'
75+
*/
76+
operator: ScaleRuleMetricDimensionOperationType;
77+
/**
78+
* list of dimension values. For example: ["App1","App2"].
79+
*/
80+
values: string[];
81+
}
82+
6383
/**
6484
* The trigger that results in a scaling action.
6585
*/
@@ -68,6 +88,10 @@ export interface MetricTrigger {
6888
* the name of the metric that defines what the rule monitors.
6989
*/
7090
metricName: string;
91+
/**
92+
* the namespace of the metric that defines what the rule monitors.
93+
*/
94+
metricNamespace?: string;
7195
/**
7296
* the resource identifier of the resource the rule monitors.
7397
*/
@@ -104,6 +128,11 @@ export interface MetricTrigger {
104128
* the threshold of the metric that triggers the scale action.
105129
*/
106130
threshold: number;
131+
/**
132+
* List of dimension conditions. For example:
133+
* [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}].
134+
*/
135+
dimensions?: ScaleRuleMetricDimension[];
107136
}
108137

109138
/**
@@ -2113,13 +2142,13 @@ export interface MetricAlertAction {
21132142
/**
21142143
* The properties of a webhook object.
21152144
*/
2116-
webhookProperties?: { [propertyName: string]: string };
2145+
webHookProperties?: { [propertyName: string]: string };
21172146
}
21182147

21192148
/**
21202149
* Contains the possible cases for MetricAlertCriteria.
21212150
*/
2122-
export type MetricAlertCriteriaUnion = MetricAlertCriteria | MetricAlertSingleResourceMultipleMetricCriteria | MetricAlertMultipleResourceMultipleMetricCriteria;
2151+
export type MetricAlertCriteriaUnion = MetricAlertCriteria | MetricAlertSingleResourceMultipleMetricCriteria | WebtestLocationAvailabilityCriteria | MetricAlertMultipleResourceMultipleMetricCriteria;
21232152

21242153
/**
21252154
* The rule criteria that defines the conditions of the alert rule.
@@ -2179,7 +2208,7 @@ export interface MetricAlertResource extends Resource {
21792208
*/
21802209
criteria: MetricAlertCriteriaUnion;
21812210
/**
2182-
* the flag that indicates whether the alert should be auto resolved or not.
2211+
* the flag that indicates whether the alert should be auto resolved or not. The default is true.
21832212
*/
21842213
autoMitigate?: boolean;
21852214
/**
@@ -2242,7 +2271,7 @@ export interface MetricAlertResourcePatch {
22422271
*/
22432272
criteria: MetricAlertCriteriaUnion;
22442273
/**
2245-
* the flag that indicates whether the alert should be auto resolved or not.
2274+
* the flag that indicates whether the alert should be auto resolved or not. The default is true.
22462275
*/
22472276
autoMitigate?: boolean;
22482277
/**
@@ -2340,6 +2369,11 @@ export interface MultiMetricCriteria {
23402369
* List of dimension conditions.
23412370
*/
23422371
dimensions?: MetricDimension[];
2372+
/**
2373+
* Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric
2374+
* validation to be skipped.
2375+
*/
2376+
skipMetricValidation?: boolean;
23432377
/**
23442378
* Describes unknown properties. The value of an unknown property can be of "any" type.
23452379
*/
@@ -2375,9 +2409,15 @@ export interface MetricCriteria {
23752409
*/
23762410
dimensions?: MetricDimension[];
23772411
/**
2378-
* the criteria operator.
2412+
* Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric
2413+
* validation to be skipped.
23792414
*/
2380-
operator: any;
2415+
skipMetricValidation?: boolean;
2416+
/**
2417+
* the criteria operator. Possible values include: 'Equals', 'NotEquals', 'GreaterThan',
2418+
* 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'
2419+
*/
2420+
operator: Operator;
23812421
/**
23822422
* the criteria threshold value that activates the alert.
23832423
*/
@@ -2398,6 +2438,28 @@ export interface MetricAlertSingleResourceMultipleMetricCriteria {
23982438
allOf?: MetricCriteria[];
23992439
}
24002440

2441+
/**
2442+
* Specifies the metric alert rule criteria for a web test resource.
2443+
*/
2444+
export interface WebtestLocationAvailabilityCriteria {
2445+
/**
2446+
* Polymorphic Discriminator
2447+
*/
2448+
odatatype: "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria";
2449+
/**
2450+
* The Application Insights web test Id.
2451+
*/
2452+
webTestId: string;
2453+
/**
2454+
* The Application Insights resource Id.
2455+
*/
2456+
componentId: string;
2457+
/**
2458+
* The number of failed locations.
2459+
*/
2460+
failedLocationCount: number;
2461+
}
2462+
24012463
/**
24022464
* Specifies a metric dimension.
24032465
*/
@@ -2476,14 +2538,20 @@ export interface DynamicMetricCriteria {
24762538
*/
24772539
dimensions?: MetricDimension[];
24782540
/**
2479-
* The operator used to compare the metric value against the threshold.
2541+
* Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric
2542+
* validation to be skipped.
2543+
*/
2544+
skipMetricValidation?: boolean;
2545+
/**
2546+
* The operator used to compare the metric value against the threshold. Possible values include:
2547+
* 'GreaterThan', 'LessThan', 'GreaterOrLessThan'
24802548
*/
2481-
operator: any;
2549+
operator: DynamicThresholdOperator;
24822550
/**
24832551
* The extent of deviation required to trigger an alert. This will affect how tight the threshold
2484-
* is to the metric series pattern.
2552+
* is to the metric series pattern. Possible values include: 'Low', 'Medium', 'High'
24852553
*/
2486-
alertSensitivity: any;
2554+
alertSensitivity: DynamicThresholdSensitivity;
24872555
/**
24882556
* The minimum number of violations required within the selected lookback time window required to
24892557
* raise an alert.
@@ -3233,6 +3301,14 @@ export type TimeAggregationType = 'Average' | 'Minimum' | 'Maximum' | 'Total' |
32333301
*/
32343302
export type ComparisonOperationType = 'Equals' | 'NotEquals' | 'GreaterThan' | 'GreaterThanOrEqual' | 'LessThan' | 'LessThanOrEqual';
32353303

3304+
/**
3305+
* Defines values for ScaleRuleMetricDimensionOperationType.
3306+
* Possible values include: 'Equals', 'NotEquals'
3307+
* @readonly
3308+
* @enum {string}
3309+
*/
3310+
export type ScaleRuleMetricDimensionOperationType = 'Equals' | 'NotEquals';
3311+
32363312
/**
32373313
* Defines values for ScaleDirection.
32383314
* Possible values include: 'None', 'Increase', 'Decrease'
@@ -3331,6 +3407,31 @@ export type Sensitivity = 'Low' | 'Medium' | 'High';
33313407
*/
33323408
export type BaselineSensitivity = 'Low' | 'Medium' | 'High';
33333409

3410+
/**
3411+
* Defines values for Operator.
3412+
* Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan',
3413+
* 'LessThanOrEqual'
3414+
* @readonly
3415+
* @enum {string}
3416+
*/
3417+
export type Operator = 'Equals' | 'NotEquals' | 'GreaterThan' | 'GreaterThanOrEqual' | 'LessThan' | 'LessThanOrEqual';
3418+
3419+
/**
3420+
* Defines values for DynamicThresholdOperator.
3421+
* Possible values include: 'GreaterThan', 'LessThan', 'GreaterOrLessThan'
3422+
* @readonly
3423+
* @enum {string}
3424+
*/
3425+
export type DynamicThresholdOperator = 'GreaterThan' | 'LessThan' | 'GreaterOrLessThan';
3426+
3427+
/**
3428+
* Defines values for DynamicThresholdSensitivity.
3429+
* Possible values include: 'Low', 'Medium', 'High'
3430+
* @readonly
3431+
* @enum {string}
3432+
*/
3433+
export type DynamicThresholdSensitivity = 'Low' | 'Medium' | 'High';
3434+
33343435
/**
33353436
* Defines values for Enabled.
33363437
* Possible values include: 'true', 'false'

sdk/monitor/arm-monitor/src/models/logProfilesMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export {
7676
ScaleAction,
7777
ScaleCapacity,
7878
ScaleRule,
79+
ScaleRuleMetricDimension,
7980
Schedule,
8081
SmsReceiver,
8182
Source,
@@ -86,5 +87,6 @@ export {
8687
VoiceReceiver,
8788
WebhookNotification,
8889
WebhookReceiver,
90+
WebtestLocationAvailabilityCriteria,
8991
WorkspaceInfo
9092
} from "../models/mappers";

0 commit comments

Comments
 (0)