Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/monitor/arm-monitor/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Microsoft
Copyright (c) 2020 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion sdk/monitor/arm-monitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to

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

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmonitor%2Farm-monitor%2FREADME.png)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/monitor/arm-monitor/README.png)
59 changes: 52 additions & 7 deletions sdk/monitor/arm-monitor/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,7 @@ export interface MetricAlertAction {
/**
* The properties of a webhook object.
*/
webhookProperties?: { [propertyName: string]: string };
webHookProperties?: { [propertyName: string]: string };
}

/**
Expand Down Expand Up @@ -2375,9 +2375,10 @@ export interface MetricCriteria {
*/
dimensions?: MetricDimension[];
/**
* the criteria operator.
* the criteria operator. Possible values include: 'Equals', 'NotEquals', 'GreaterThan',
* 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'
*/
operator: any;
operator: Operator;
/**
* the criteria threshold value that activates the alert.
*/
Expand All @@ -2398,6 +2399,24 @@ export interface MetricAlertSingleResourceMultipleMetricCriteria {
allOf?: MetricCriteria[];
}

/**
* Specifies the metric alert rule criteria for a web test resource.
*/
export interface WebtestLocationAvailabilityCriteria {
/**
* The Application Insights web test Id.
*/
webTestId: string;
/**
* The Application Insights resource Id.
*/
componentId: string;
/**
* The number of failed locations.
*/
failedLocationCount: number;
}

/**
* Specifies a metric dimension.
*/
Expand Down Expand Up @@ -2476,14 +2495,15 @@ export interface DynamicMetricCriteria {
*/
dimensions?: MetricDimension[];
/**
* The operator used to compare the metric value against the threshold.
* The operator used to compare the metric value against the threshold. Possible values include:
* 'GreaterThan', 'LessThan', 'GreaterOrLessThan'
*/
operator: any;
operator: DynamicThresholdOperator;
/**
* The extent of deviation required to trigger an alert. This will affect how tight the threshold
* is to the metric series pattern.
* is to the metric series pattern. Possible values include: 'Low', 'Medium', 'High'
*/
alertSensitivity: any;
alertSensitivity: DynamicThresholdSensitivity;
/**
* The minimum number of violations required within the selected lookback time window required to
* raise an alert.
Expand Down Expand Up @@ -3331,6 +3351,31 @@ export type Sensitivity = 'Low' | 'Medium' | 'High';
*/
export type BaselineSensitivity = 'Low' | 'Medium' | 'High';

/**
* Defines values for Operator.
* Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan',
* 'LessThanOrEqual'
* @readonly
* @enum {string}
*/
export type Operator = 'Equals' | 'NotEquals' | 'GreaterThan' | 'GreaterThanOrEqual' | 'LessThan' | 'LessThanOrEqual';

/**
* Defines values for DynamicThresholdOperator.
* Possible values include: 'GreaterThan', 'LessThan', 'GreaterOrLessThan'
* @readonly
* @enum {string}
*/
export type DynamicThresholdOperator = 'GreaterThan' | 'LessThan' | 'GreaterOrLessThan';

/**
* Defines values for DynamicThresholdSensitivity.
* Possible values include: 'Low', 'Medium', 'High'
* @readonly
* @enum {string}
*/
export type DynamicThresholdSensitivity = 'Low' | 'Medium' | 'High';

/**
* Defines values for Enabled.
* Possible values include: 'true', 'false'
Expand Down
41 changes: 36 additions & 5 deletions sdk/monitor/arm-monitor/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3591,8 +3591,8 @@ export const MetricAlertAction: msRest.CompositeMapper = {
name: "String"
}
},
webhookProperties: {
serializedName: "webhookProperties",
webHookProperties: {
serializedName: "webHookProperties",
type: {
name: "Dictionary",
value: {
Expand Down Expand Up @@ -4026,7 +4026,7 @@ export const MetricCriteria: msRest.CompositeMapper = {
required: true,
serializedName: "operator",
type: {
name: "Object"
name: "String"
}
},
threshold: {
Expand Down Expand Up @@ -4068,6 +4068,37 @@ export const MetricAlertSingleResourceMultipleMetricCriteria: msRest.CompositeMa
}
};

export const WebtestLocationAvailabilityCriteria: msRest.CompositeMapper = {
serializedName: "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria",
type: {
name: "Composite",
className: "WebtestLocationAvailabilityCriteria",
modelProperties: {
webTestId: {
required: true,
serializedName: "webTestId",
type: {
name: "String"
}
},
componentId: {
required: true,
serializedName: "componentId",
type: {
name: "String"
}
},
failedLocationCount: {
required: true,
serializedName: "failedLocationCount",
type: {
name: "Number"
}
}
}
}
};

export const MetricDimension: msRest.CompositeMapper = {
serializedName: "MetricDimension",
type: {
Expand Down Expand Up @@ -4172,14 +4203,14 @@ export const DynamicMetricCriteria: msRest.CompositeMapper = {
required: true,
serializedName: "operator",
type: {
name: "Object"
name: "String"
}
},
alertSensitivity: {
required: true,
serializedName: "alertSensitivity",
type: {
name: "Object"
name: "String"
}
},
failingPeriods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

const packageName = "@azure/arm-monitor";
const packageVersion = "5.4.0";
const packageVersion = "6.0.0";

export class MonitorManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
Expand Down