diff --git a/src/SDKs/Monitor/AzSdk.RP.props b/src/SDKs/Monitor/AzSdk.RP.props index abd80474d39a3..0f80aaddead66 100644 --- a/src/SDKs/Monitor/AzSdk.RP.props +++ b/src/SDKs/Monitor/AzSdk.RP.props @@ -1,7 +1,7 @@ - insights_2017-04-01;insights_2015-04-01;insights_2016-03-01;insights_2017-05-01-preview;insights_2017-11-01-preview; + insights_2017-04-01;insights_2015-04-01;insights_2016-03-01;insights_2017-05-01-preview;insights_2017-11-01-preview;insights_2018-01-01; $(PackageTags);$(CommonTags);$(AzureApiTag); \ No newline at end of file diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/IMetricDefinitionsOperations.cs b/src/SDKs/Monitor/Management.Monitor/Generated/IMetricDefinitionsOperations.cs index 3313a81071ded..13beb545e854d 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/IMetricDefinitionsOperations.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/IMetricDefinitionsOperations.cs @@ -29,6 +29,9 @@ public partial interface IMetricDefinitionsOperations /// /// The identifier of the resource. /// + /// + /// Metric namespace to query metric definitions for. + /// /// /// The headers that will be added to request. /// @@ -44,6 +47,6 @@ public partial interface IMetricDefinitionsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceUri, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(string resourceUri, string metricnamespace = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/IMetricsOperations.cs b/src/SDKs/Monitor/Management.Monitor/Generated/IMetricsOperations.cs index 6208aede4dc60..8e987dc9abe2c 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/IMetricsOperations.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/IMetricsOperations.cs @@ -40,17 +40,31 @@ public partial interface IMetricsOperations /// /// The interval (i.e. timegrain) of the query. /// - /// - /// The name of the metric to retrieve. + /// + /// The names of the metrics (comma separated) to retrieve. /// /// /// The list of aggregation types (comma separated) to retrieve. /// + /// + /// The maximum number of records to retrieve. + /// Valid only if $filter is specified. + /// Defaults to 10. + /// + /// + /// The aggregation to use for sorting results and the direction of the + /// sort. + /// Only one order can be specified. + /// Examples: sum asc. + /// /// /// Reduces the set of data collected. The syntax allowed depends on /// the operation. See the operation's description for details. /// Possible values include: 'Data', 'Metadata' /// + /// + /// Metric namespace to query metric definitions for. + /// /// /// The headers that will be added to request. /// @@ -66,6 +80,6 @@ public partial interface IMetricsOperations /// /// Thrown when a required parameter is null /// - Task> ListWithHttpMessagesAsync(string resourceUri, ODataQuery odataQuery = default(ODataQuery), string timespan = default(string), System.TimeSpan? interval = default(System.TimeSpan?), string metric = default(string), string aggregation = default(string), ResultType? resultType = default(ResultType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListWithHttpMessagesAsync(string resourceUri, ODataQuery odataQuery = default(ODataQuery), string timespan = default(string), System.TimeSpan? interval = default(System.TimeSpan?), string metricnames = default(string), string aggregation = default(string), double? top = default(double?), string orderby = default(string), ResultType? resultType = default(ResultType?), string metricnamespace = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/MetricDefinitionsOperations.cs b/src/SDKs/Monitor/Management.Monitor/Generated/MetricDefinitionsOperations.cs index b7283ddb83ae0..d69e00083adc6 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/MetricDefinitionsOperations.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/MetricDefinitionsOperations.cs @@ -56,6 +56,9 @@ internal MetricDefinitionsOperations(MonitorManagementClient client) /// /// The identifier of the resource. /// + /// + /// Metric namespace to query metric definitions for. + /// /// /// Headers that will be added to request. /// @@ -77,13 +80,13 @@ internal MetricDefinitionsOperations(MonitorManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceUri, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string resourceUri, string metricnamespace = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceUri == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceUri"); } - string apiVersion = "2017-05-01-preview"; + string apiVersion = "2018-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -93,6 +96,7 @@ internal MetricDefinitionsOperations(MonitorManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceUri", resourceUri); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("metricnamespace", metricnamespace); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } @@ -105,6 +109,10 @@ internal MetricDefinitionsOperations(MonitorManagementClient client) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } + if (metricnamespace != null) + { + _queryParameters.Add(string.Format("metricnamespace={0}", System.Uri.EscapeDataString(metricnamespace))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/MetricDefinitionsOperationsExtensions.cs b/src/SDKs/Monitor/Management.Monitor/Generated/MetricDefinitionsOperationsExtensions.cs index 7a799b3a69552..b7a408b6ca336 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/MetricDefinitionsOperationsExtensions.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/MetricDefinitionsOperationsExtensions.cs @@ -32,9 +32,12 @@ public static partial class MetricDefinitionsOperationsExtensions /// /// The identifier of the resource. /// - public static IEnumerable List(this IMetricDefinitionsOperations operations, string resourceUri) + /// + /// Metric namespace to query metric definitions for. + /// + public static IEnumerable List(this IMetricDefinitionsOperations operations, string resourceUri, string metricnamespace = default(string)) { - return operations.ListAsync(resourceUri).GetAwaiter().GetResult(); + return operations.ListAsync(resourceUri, metricnamespace).GetAwaiter().GetResult(); } /// @@ -46,12 +49,15 @@ public static IEnumerable List(this IMetricDefinitionsOperatio /// /// The identifier of the resource. /// + /// + /// Metric namespace to query metric definitions for. + /// /// /// The cancellation token. /// - public static async Task> ListAsync(this IMetricDefinitionsOperations operations, string resourceUri, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IMetricDefinitionsOperations operations, string resourceUri, string metricnamespace = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceUri, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(resourceUri, metricnamespace, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/MetricsOperations.cs b/src/SDKs/Monitor/Management.Monitor/Generated/MetricsOperations.cs index 13197f80d922e..f387df4d688d3 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/MetricsOperations.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/MetricsOperations.cs @@ -67,17 +67,30 @@ internal MetricsOperations(MonitorManagementClient client) /// /// The interval (i.e. timegrain) of the query. /// - /// - /// The name of the metric to retrieve. + /// + /// The names of the metrics (comma separated) to retrieve. /// /// /// The list of aggregation types (comma separated) to retrieve. /// + /// + /// The maximum number of records to retrieve. + /// Valid only if $filter is specified. + /// Defaults to 10. + /// + /// + /// The aggregation to use for sorting results and the direction of the sort. + /// Only one order can be specified. + /// Examples: sum asc. + /// /// /// Reduces the set of data collected. The syntax allowed depends on the /// operation. See the operation's description for details. Possible values /// include: 'Data', 'Metadata' /// + /// + /// Metric namespace to query metric definitions for. + /// /// /// Headers that will be added to request. /// @@ -99,13 +112,13 @@ internal MetricsOperations(MonitorManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListWithHttpMessagesAsync(string resourceUri, ODataQuery odataQuery = default(ODataQuery), string timespan = default(string), System.TimeSpan? interval = default(System.TimeSpan?), string metric = default(string), string aggregation = default(string), ResultType? resultType = default(ResultType?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListWithHttpMessagesAsync(string resourceUri, ODataQuery odataQuery = default(ODataQuery), string timespan = default(string), System.TimeSpan? interval = default(System.TimeSpan?), string metricnames = default(string), string aggregation = default(string), double? top = default(double?), string orderby = default(string), ResultType? resultType = default(ResultType?), string metricnamespace = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceUri == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceUri"); } - string apiVersion = "2017-05-01-preview"; + string apiVersion = "2018-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -117,10 +130,13 @@ internal MetricsOperations(MonitorManagementClient client) tracingParameters.Add("resourceUri", resourceUri); tracingParameters.Add("timespan", timespan); tracingParameters.Add("interval", interval); - tracingParameters.Add("metric", metric); + tracingParameters.Add("metricnames", metricnames); tracingParameters.Add("aggregation", aggregation); + tracingParameters.Add("top", top); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("resultType", resultType); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("metricnamespace", metricnamespace); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } @@ -145,14 +161,22 @@ internal MetricsOperations(MonitorManagementClient client) { _queryParameters.Add(string.Format("interval={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(interval, Client.SerializationSettings).Trim('"')))); } - if (metric != null) + if (metricnames != null) { - _queryParameters.Add(string.Format("metric={0}", System.Uri.EscapeDataString(metric))); + _queryParameters.Add(string.Format("metricnames={0}", System.Uri.EscapeDataString(metricnames))); } if (aggregation != null) { _queryParameters.Add(string.Format("aggregation={0}", System.Uri.EscapeDataString(aggregation))); } + if (top != null) + { + _queryParameters.Add(string.Format("top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("orderby={0}", System.Uri.EscapeDataString(orderby))); + } if (resultType != null) { _queryParameters.Add(string.Format("resultType={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(resultType, Client.SerializationSettings).Trim('"')))); @@ -161,6 +185,10 @@ internal MetricsOperations(MonitorManagementClient client) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } + if (metricnamespace != null) + { + _queryParameters.Add(string.Format("metricnamespace={0}", System.Uri.EscapeDataString(metricnamespace))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/MetricsOperationsExtensions.cs b/src/SDKs/Monitor/Management.Monitor/Generated/MetricsOperationsExtensions.cs index f4972c302ebf5..207b37b3377cf 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/MetricsOperationsExtensions.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/MetricsOperationsExtensions.cs @@ -41,20 +41,33 @@ public static partial class MetricsOperationsExtensions /// /// The interval (i.e. timegrain) of the query. /// - /// - /// The name of the metric to retrieve. + /// + /// The names of the metrics (comma separated) to retrieve. /// /// /// The list of aggregation types (comma separated) to retrieve. /// + /// + /// The maximum number of records to retrieve. + /// Valid only if $filter is specified. + /// Defaults to 10. + /// + /// + /// The aggregation to use for sorting results and the direction of the sort. + /// Only one order can be specified. + /// Examples: sum asc. + /// /// /// Reduces the set of data collected. The syntax allowed depends on the /// operation. See the operation's description for details. Possible values /// include: 'Data', 'Metadata' /// - public static Response List(this IMetricsOperations operations, string resourceUri, ODataQuery odataQuery = default(ODataQuery), string timespan = default(string), System.TimeSpan? interval = default(System.TimeSpan?), string metric = default(string), string aggregation = default(string), ResultType? resultType = default(ResultType?)) + /// + /// Metric namespace to query metric definitions for. + /// + public static Response List(this IMetricsOperations operations, string resourceUri, ODataQuery odataQuery = default(ODataQuery), string timespan = default(string), System.TimeSpan? interval = default(System.TimeSpan?), string metricnames = default(string), string aggregation = default(string), double? top = default(double?), string orderby = default(string), ResultType? resultType = default(ResultType?), string metricnamespace = default(string)) { - return operations.ListAsync(resourceUri, odataQuery, timespan, interval, metric, aggregation, resultType).GetAwaiter().GetResult(); + return operations.ListAsync(resourceUri, odataQuery, timespan, interval, metricnames, aggregation, top, orderby, resultType, metricnamespace).GetAwaiter().GetResult(); } /// @@ -76,23 +89,36 @@ public static partial class MetricsOperationsExtensions /// /// The interval (i.e. timegrain) of the query. /// - /// - /// The name of the metric to retrieve. + /// + /// The names of the metrics (comma separated) to retrieve. /// /// /// The list of aggregation types (comma separated) to retrieve. /// + /// + /// The maximum number of records to retrieve. + /// Valid only if $filter is specified. + /// Defaults to 10. + /// + /// + /// The aggregation to use for sorting results and the direction of the sort. + /// Only one order can be specified. + /// Examples: sum asc. + /// /// /// Reduces the set of data collected. The syntax allowed depends on the /// operation. See the operation's description for details. Possible values /// include: 'Data', 'Metadata' /// + /// + /// Metric namespace to query metric definitions for. + /// /// /// The cancellation token. /// - public static async Task ListAsync(this IMetricsOperations operations, string resourceUri, ODataQuery odataQuery = default(ODataQuery), string timespan = default(string), System.TimeSpan? interval = default(System.TimeSpan?), string metric = default(string), string aggregation = default(string), ResultType? resultType = default(ResultType?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListAsync(this IMetricsOperations operations, string resourceUri, ODataQuery odataQuery = default(ODataQuery), string timespan = default(string), System.TimeSpan? interval = default(System.TimeSpan?), string metricnames = default(string), string aggregation = default(string), double? top = default(double?), string orderby = default(string), ResultType? resultType = default(ResultType?), string metricnamespace = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceUri, odataQuery, timespan, interval, metric, aggregation, resultType, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(resourceUri, odataQuery, timespan, interval, metricnames, aggregation, top, orderby, resultType, metricnamespace, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Models/EventData.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Models/EventData.cs index ee90c9bdbe0dd..38533edbd3672 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Models/EventData.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Models/EventData.cs @@ -31,17 +31,6 @@ public EventData() /// /// Initializes a new instance of the EventData class. /// - /// the event level. Possible values include: - /// 'Critical', 'Error', 'Warning', 'Informational', 'Verbose' - /// the timestamp of when the event was - /// generated by the Azure service processing the request corresponding - /// the event. It in ISO 8601 format. - /// the timestamp of when the event - /// became available for querying via this API. It is in ISO 8601 - /// format. This value should not be confused eventTimestamp. As there - /// might be a delay between the occurrence time of the event, and the - /// time that the event is submitted to the Azure logging - /// infrastructure. /// key value pairs to identify ARM /// permissions. /// the email address of the user who has @@ -63,6 +52,8 @@ public EventData() /// the 'clientRequestId', 'clientIpAddress' (IP address of the user /// who initiated the event) and 'method' (HTTP method e.g. /// PUT). + /// the event level. Possible values include: + /// 'Critical', 'Error', 'Warning', 'Informational', 'Verbose' /// the resource group name of the /// impacted resource. /// the resource provider name of @@ -88,10 +79,19 @@ public EventData() /// (HTTP Status Code: 404), Conflict (HTTP Status Code: 409), Internal /// Server Error (HTTP Status Code: 500), Service Unavailable (HTTP /// Status Code:503), Gateway Timeout (HTTP Status Code: 504) + /// the timestamp of when the event was + /// generated by the Azure service processing the request corresponding + /// the event. It in ISO 8601 format. + /// the timestamp of when the event + /// became available for querying via this API. It is in ISO 8601 + /// format. This value should not be confused eventTimestamp. As there + /// might be a delay between the occurrence time of the event, and the + /// time that the event is submitted to the Azure logging + /// infrastructure. /// the Azure subscription Id usually a /// GUID. /// the Azure tenant Id - public EventData(EventLevel level, System.DateTime eventTimestamp, System.DateTime submissionTimestamp, SenderAuthorization authorization = default(SenderAuthorization), IDictionary claims = default(IDictionary), string caller = default(string), string description = default(string), string id = default(string), string eventDataId = default(string), string correlationId = default(string), LocalizableString eventName = default(LocalizableString), LocalizableString category = default(LocalizableString), HttpRequestInfo httpRequest = default(HttpRequestInfo), string resourceGroupName = default(string), LocalizableString resourceProviderName = default(LocalizableString), string resourceId = default(string), LocalizableString resourceType = default(LocalizableString), string operationId = default(string), LocalizableString operationName = default(LocalizableString), IDictionary properties = default(IDictionary), LocalizableString status = default(LocalizableString), LocalizableString subStatus = default(LocalizableString), string subscriptionId = default(string), string tenantId = default(string)) + public EventData(SenderAuthorization authorization = default(SenderAuthorization), IDictionary claims = default(IDictionary), string caller = default(string), string description = default(string), string id = default(string), string eventDataId = default(string), string correlationId = default(string), LocalizableString eventName = default(LocalizableString), LocalizableString category = default(LocalizableString), HttpRequestInfo httpRequest = default(HttpRequestInfo), EventLevel? level = default(EventLevel?), string resourceGroupName = default(string), LocalizableString resourceProviderName = default(LocalizableString), string resourceId = default(string), LocalizableString resourceType = default(LocalizableString), string operationId = default(string), LocalizableString operationName = default(LocalizableString), IDictionary properties = default(IDictionary), LocalizableString status = default(LocalizableString), LocalizableString subStatus = default(LocalizableString), System.DateTime? eventTimestamp = default(System.DateTime?), System.DateTime? submissionTimestamp = default(System.DateTime?), string subscriptionId = default(string), string tenantId = default(string)) { Authorization = authorization; Claims = claims; @@ -128,137 +128,134 @@ public EventData() /// /// [JsonProperty(PropertyName = "authorization")] - public SenderAuthorization Authorization { get; set; } + public SenderAuthorization Authorization { get; private set; } /// - /// Gets or sets key value pairs to identify ARM permissions. + /// Gets key value pairs to identify ARM permissions. /// [JsonProperty(PropertyName = "claims")] - public IDictionary Claims { get; set; } + public IDictionary Claims { get; private set; } /// - /// Gets or sets the email address of the user who has performed the - /// operation, the UPN claim or SPN claim based on availability. + /// Gets the email address of the user who has performed the operation, + /// the UPN claim or SPN claim based on availability. /// [JsonProperty(PropertyName = "caller")] - public string Caller { get; set; } + public string Caller { get; private set; } /// - /// Gets or sets the description of the event. + /// Gets the description of the event. /// [JsonProperty(PropertyName = "description")] - public string Description { get; set; } + public string Description { get; private set; } /// - /// Gets or sets the Id of this event as required by ARM for RBAC. It - /// contains the EventDataID and a timestamp information. + /// Gets the Id of this event as required by ARM for RBAC. It contains + /// the EventDataID and a timestamp information. /// [JsonProperty(PropertyName = "id")] - public string Id { get; set; } + public string Id { get; private set; } /// - /// Gets or sets the event data Id. This is a unique identifier for an - /// event. + /// Gets the event data Id. This is a unique identifier for an event. /// [JsonProperty(PropertyName = "eventDataId")] - public string EventDataId { get; set; } + public string EventDataId { get; private set; } /// - /// Gets or sets the correlation Id, usually a GUID in the string - /// format. The correlation Id is shared among the events that belong - /// to the same uber operation. + /// Gets the correlation Id, usually a GUID in the string format. The + /// correlation Id is shared among the events that belong to the same + /// uber operation. /// [JsonProperty(PropertyName = "correlationId")] - public string CorrelationId { get; set; } + public string CorrelationId { get; private set; } /// - /// Gets or sets the event name. This value should not be confused with + /// Gets the event name. This value should not be confused with /// OperationName. For practical purposes, OperationName might be more /// appealing to end users. /// [JsonProperty(PropertyName = "eventName")] - public LocalizableString EventName { get; set; } + public LocalizableString EventName { get; private set; } /// - /// Gets or sets the event category. + /// Gets the event category. /// [JsonProperty(PropertyName = "category")] - public LocalizableString Category { get; set; } + public LocalizableString Category { get; private set; } /// - /// Gets or sets the HTTP request info. Usually includes the - /// 'clientRequestId', 'clientIpAddress' (IP address of the user who - /// initiated the event) and 'method' (HTTP method e.g. PUT). + /// Gets the HTTP request info. Usually includes the 'clientRequestId', + /// 'clientIpAddress' (IP address of the user who initiated the event) + /// and 'method' (HTTP method e.g. PUT). /// [JsonProperty(PropertyName = "httpRequest")] - public HttpRequestInfo HttpRequest { get; set; } + public HttpRequestInfo HttpRequest { get; private set; } /// - /// Gets or sets the event level. Possible values include: 'Critical', - /// 'Error', 'Warning', 'Informational', 'Verbose' + /// Gets the event level. Possible values include: 'Critical', 'Error', + /// 'Warning', 'Informational', 'Verbose' /// [JsonProperty(PropertyName = "level")] - public EventLevel Level { get; set; } + public EventLevel? Level { get; private set; } /// - /// Gets or sets the resource group name of the impacted resource. + /// Gets the resource group name of the impacted resource. /// [JsonProperty(PropertyName = "resourceGroupName")] - public string ResourceGroupName { get; set; } + public string ResourceGroupName { get; private set; } /// - /// Gets or sets the resource provider name of the impacted resource. + /// Gets the resource provider name of the impacted resource. /// [JsonProperty(PropertyName = "resourceProviderName")] - public LocalizableString ResourceProviderName { get; set; } + public LocalizableString ResourceProviderName { get; private set; } /// - /// Gets or sets the resource uri that uniquely identifies the resource - /// that caused this event. + /// Gets the resource uri that uniquely identifies the resource that + /// caused this event. /// [JsonProperty(PropertyName = "resourceId")] - public string ResourceId { get; set; } + public string ResourceId { get; private set; } /// - /// Gets or sets the resource type + /// Gets the resource type /// [JsonProperty(PropertyName = "resourceType")] - public LocalizableString ResourceType { get; set; } + public LocalizableString ResourceType { get; private set; } /// - /// Gets or sets it is usually a GUID shared among the events - /// corresponding to single operation. This value should not be - /// confused with EventName. + /// Gets it is usually a GUID shared among the events corresponding to + /// single operation. This value should not be confused with EventName. /// [JsonProperty(PropertyName = "operationId")] - public string OperationId { get; set; } + public string OperationId { get; private set; } /// - /// Gets or sets the operation name. + /// Gets the operation name. /// [JsonProperty(PropertyName = "operationName")] - public LocalizableString OperationName { get; set; } + public LocalizableString OperationName { get; private set; } /// - /// Gets or sets the set of <Key, Value> pairs (usually a + /// Gets the set of <Key, Value> pairs (usually a /// Dictionary<String, String>) that includes details /// about the event. /// [JsonProperty(PropertyName = "properties")] - public IDictionary Properties { get; set; } + public IDictionary Properties { get; private set; } /// - /// Gets or sets a string describing the status of the operation. Some - /// typical values are: Started, In progress, Succeeded, Failed, - /// Resolved. + /// Gets a string describing the status of the operation. Some typical + /// values are: Started, In progress, Succeeded, Failed, Resolved. /// [JsonProperty(PropertyName = "status")] - public LocalizableString Status { get; set; } + public LocalizableString Status { get; private set; } /// - /// Gets or sets the event sub status. Most of the time, when included, - /// this captures the HTTP status code of the REST call. Common values - /// are: OK (HTTP Status Code: 200), Created (HTTP Status Code: 201), + /// Gets the event sub status. Most of the time, when included, this + /// captures the HTTP status code of the REST call. Common values are: + /// OK (HTTP Status Code: 200), Created (HTTP Status Code: 201), /// Accepted (HTTP Status Code: 202), No Content (HTTP Status Code: /// 204), Bad Request(HTTP Status Code: 400), Not Found (HTTP Status /// Code: 404), Conflict (HTTP Status Code: 409), Internal Server Error @@ -266,37 +263,37 @@ public EventData() /// Code:503), Gateway Timeout (HTTP Status Code: 504) /// [JsonProperty(PropertyName = "subStatus")] - public LocalizableString SubStatus { get; set; } + public LocalizableString SubStatus { get; private set; } /// - /// Gets or sets the timestamp of when the event was generated by the - /// Azure service processing the request corresponding the event. It in - /// ISO 8601 format. + /// Gets the timestamp of when the event was generated by the Azure + /// service processing the request corresponding the event. It in ISO + /// 8601 format. /// [JsonProperty(PropertyName = "eventTimestamp")] - public System.DateTime EventTimestamp { get; set; } + public System.DateTime? EventTimestamp { get; private set; } /// - /// Gets or sets the timestamp of when the event became available for - /// querying via this API. It is in ISO 8601 format. This value should - /// not be confused eventTimestamp. As there might be a delay between - /// the occurrence time of the event, and the time that the event is + /// Gets the timestamp of when the event became available for querying + /// via this API. It is in ISO 8601 format. This value should not be + /// confused eventTimestamp. As there might be a delay between the + /// occurrence time of the event, and the time that the event is /// submitted to the Azure logging infrastructure. /// [JsonProperty(PropertyName = "submissionTimestamp")] - public System.DateTime SubmissionTimestamp { get; set; } + public System.DateTime? SubmissionTimestamp { get; private set; } /// - /// Gets or sets the Azure subscription Id usually a GUID. + /// Gets the Azure subscription Id usually a GUID. /// [JsonProperty(PropertyName = "subscriptionId")] - public string SubscriptionId { get; set; } + public string SubscriptionId { get; private set; } /// - /// Gets or sets the Azure tenant Id + /// Gets the Azure tenant Id /// [JsonProperty(PropertyName = "tenantId")] - public string TenantId { get; set; } + public string TenantId { get; private set; } /// /// Validate the object. diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Models/MetricDefinition.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Models/MetricDefinition.cs index c57f89718adc6..02bfa008cbf74 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Models/MetricDefinition.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Models/MetricDefinition.cs @@ -35,6 +35,8 @@ public MetricDefinition() /// dimension is required. /// the resource identifier of the resource /// that emitted the metric. + /// the namespace the metric blongs + /// to. /// the name and the display name of the metric, /// i.e. it is a localizable string. /// the unit of the metric. Possible values include: @@ -44,19 +46,23 @@ public MetricDefinition() /// value defining how to use the values for display. Possible values /// include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', /// 'Total' + /// the collection of what + /// aggregation types are supported. /// the collection of what /// aggregation intervals are available to be queried. /// the resource identifier of the metric /// definition. /// the name and the display name of the /// dimension, i.e. it is a localizable string. - public MetricDefinition(bool? isDimensionRequired = default(bool?), string resourceId = default(string), LocalizableString name = default(LocalizableString), Unit? unit = default(Unit?), AggregationType? primaryAggregationType = default(AggregationType?), IList metricAvailabilities = default(IList), string id = default(string), IList dimensions = default(IList)) + public MetricDefinition(bool? isDimensionRequired = default(bool?), string resourceId = default(string), string namespaceProperty = default(string), LocalizableString name = default(LocalizableString), Unit? unit = default(Unit?), AggregationType? primaryAggregationType = default(AggregationType?), IList supportedAggregationTypes = default(IList), IList metricAvailabilities = default(IList), string id = default(string), IList dimensions = default(IList)) { IsDimensionRequired = isDimensionRequired; ResourceId = resourceId; + NamespaceProperty = namespaceProperty; Name = name; Unit = unit; PrimaryAggregationType = primaryAggregationType; + SupportedAggregationTypes = supportedAggregationTypes; MetricAvailabilities = metricAvailabilities; Id = id; Dimensions = dimensions; @@ -81,6 +87,12 @@ public MetricDefinition() [JsonProperty(PropertyName = "resourceId")] public string ResourceId { get; set; } + /// + /// Gets or sets the namespace the metric blongs to. + /// + [JsonProperty(PropertyName = "namespace")] + public string NamespaceProperty { get; set; } + /// /// Gets or sets the name and the display name of the metric, i.e. it /// is a localizable string. @@ -104,6 +116,13 @@ public MetricDefinition() [JsonProperty(PropertyName = "primaryAggregationType")] public AggregationType? PrimaryAggregationType { get; set; } + /// + /// Gets or sets the collection of what aggregation types are + /// supported. + /// + [JsonProperty(PropertyName = "supportedAggregationTypes")] + public IList SupportedAggregationTypes { get; set; } + /// /// Gets or sets the collection of what aggregation intervals are /// available to be queried. diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Models/Response.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Models/Response.cs index 3a7aae3b4d469..3315dfe9223f5 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Models/Response.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Models/Response.cs @@ -43,11 +43,17 @@ public Response() /// metric data was returned in. This may be adjusted in the future /// and returned back from what was originally requested. This is not /// present if a metadata request was made. - public Response(string timespan, IList value, double? cost = default(double?), System.TimeSpan? interval = default(System.TimeSpan?)) + /// The namespace of the metrics been + /// queried + /// The region of the resource been + /// queried for metrics. + public Response(string timespan, IList value, double? cost = default(double?), System.TimeSpan? interval = default(System.TimeSpan?), string namespaceProperty = default(string), string resourceregion = default(string)) { Cost = cost; Timespan = timespan; Interval = interval; + NamespaceProperty = namespaceProperty; + Resourceregion = resourceregion; Value = value; CustomInit(); } @@ -82,6 +88,18 @@ public Response() [JsonProperty(PropertyName = "interval")] public System.TimeSpan? Interval { get; set; } + /// + /// Gets or sets the namespace of the metrics been queried + /// + [JsonProperty(PropertyName = "namespace")] + public string NamespaceProperty { get; set; } + + /// + /// Gets or sets the region of the resource been queried for metrics. + /// + [JsonProperty(PropertyName = "resourceregion")] + public string Resourceregion { get; set; } + /// /// Gets or sets the value of the collection. /// diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/SdkInfo_MonitorClient.cs b/src/SDKs/Monitor/Management.Monitor/Generated/SdkInfo_MonitorClient.cs index 3a5b83aabd157..faac10f754f79 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/SdkInfo_MonitorClient.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/SdkInfo_MonitorClient.cs @@ -22,8 +22,8 @@ public static IEnumerable> ApiInfo_MonitorClient new Tuple("insights", "EventCategories", "2015-04-01"), new Tuple("insights", "LogProfiles", "2016-03-01"), new Tuple("insights", "MetricBaseline", "2017-11-01-preview"), - new Tuple("insights", "MetricDefinitions", "2017-05-01-preview"), - new Tuple("insights", "Metrics", "2017-05-01-preview"), + new Tuple("insights", "MetricDefinitions", "2018-01-01"), + new Tuple("insights", "Metrics", "2018-01-01"), new Tuple("insights", "Operations", "2015-04-01"), new Tuple("insights", "TenantActivityLogs", "2015-04-01"), }.AsEnumerable(); diff --git a/src/SDKs/Monitor/Management.Monitor/generate.cmd b/src/SDKs/Monitor/Management.Monitor/generate.cmd index 1d6d515e064fe..a7393ec1e1a81 100644 --- a/src/SDKs/Monitor/Management.Monitor/generate.cmd +++ b/src/SDKs/Monitor/Management.Monitor/generate.cmd @@ -5,4 +5,4 @@ @echo off call %~dp0..\..\..\..\tools\generate.cmd monitor/resource-manager %* -call %~dp0..\..\..\..\tools\generate.cmd monitor/data-plane %* + diff --git a/src/SDKs/Monitor/Monitor.Tests/BasicTests/EventDataTests.cs b/src/SDKs/Monitor/Monitor.Tests/BasicTests/EventDataTests.cs index eaf4984883846..b5273072ecb6a 100644 --- a/src/SDKs/Monitor/Monitor.Tests/BasicTests/EventDataTests.cs +++ b/src/SDKs/Monitor/Monitor.Tests/BasicTests/EventDataTests.cs @@ -130,7 +130,7 @@ private static void AreEqual(EventData exp, EventData act) Assert.Equal(exp.Description, act.Description); Assert.Equal(exp.EventDataId, act.EventDataId); Utilities.AreEqual(exp.EventName, act.EventName); - Assert.Equal(exp.EventTimestamp.ToUniversalTime(), act.EventTimestamp.ToUniversalTime()); + Assert.Equal(exp.EventTimestamp?.ToUniversalTime(), act.EventTimestamp?.ToUniversalTime()); AreEqual(exp.HttpRequest, act.HttpRequest); Assert.Equal(exp.Level, act.Level); Assert.Equal(exp.OperationId, act.OperationId); @@ -140,7 +140,7 @@ private static void AreEqual(EventData exp, EventData act) Utilities.AreEqual(exp.ResourceProviderName, act.ResourceProviderName); Utilities.AreEqual(exp.Status, act.Status); Utilities.AreEqual(exp.SubStatus, act.SubStatus); - Assert.Equal(exp.SubmissionTimestamp.ToUniversalTime(), act.SubmissionTimestamp.ToUniversalTime()); + Assert.Equal(exp.SubmissionTimestamp?.ToUniversalTime(), act.SubmissionTimestamp?.ToUniversalTime()); Assert.Equal(exp.SubscriptionId, act.SubscriptionId); // TODO: This cannot be verified for now. Should fix this in the next mmilestone. diff --git a/src/SDKs/Monitor/Monitor.Tests/Scenarios/EventDataTests.cs b/src/SDKs/Monitor/Monitor.Tests/Scenarios/EventDataTests.cs index aaf444819a459..68eee51942143 100644 --- a/src/SDKs/Monitor/Monitor.Tests/Scenarios/EventDataTests.cs +++ b/src/SDKs/Monitor/Monitor.Tests/Scenarios/EventDataTests.cs @@ -139,7 +139,7 @@ private static void AreEqual(EventData exp, EventData act) Assert.Equal(exp.Description, act.Description); Assert.Equal(exp.EventDataId, act.EventDataId); AreEqual(exp.EventName, act.EventName); - Assert.Equal(exp.EventTimestamp.ToUniversalTime(), act.EventTimestamp.ToUniversalTime()); + Assert.Equal(exp.EventTimestamp?.ToUniversalTime(), act.EventTimestamp?.ToUniversalTime()); AreEqual(exp.HttpRequest, act.HttpRequest); Assert.Equal(exp.Level, act.Level); Assert.Equal(exp.OperationId, act.OperationId); @@ -149,7 +149,7 @@ private static void AreEqual(EventData exp, EventData act) AreEqual(exp.ResourceProviderName, act.ResourceProviderName); AreEqual(exp.Status, act.Status); AreEqual(exp.SubStatus, act.SubStatus); - Assert.Equal(exp.SubmissionTimestamp.ToUniversalTime(), act.SubmissionTimestamp.ToUniversalTime()); + Assert.Equal(exp.SubmissionTimestamp?.ToUniversalTime(), act.SubmissionTimestamp?.ToUniversalTime()); Assert.Equal(exp.SubscriptionId, act.SubscriptionId); // TODO: This cannot be verified for now. Should fix this in the next mmilestone. diff --git a/src/SDKs/Monitor/Monitor.Tests/Scenarios/MetricsTests.cs b/src/SDKs/Monitor/Monitor.Tests/Scenarios/MetricsTests.cs index 600a074c7e29f..5c42304271c1d 100644 --- a/src/SDKs/Monitor/Monitor.Tests/Scenarios/MetricsTests.cs +++ b/src/SDKs/Monitor/Monitor.Tests/Scenarios/MetricsTests.cs @@ -98,7 +98,7 @@ public void GetMetricsTest() // Reading multi-dim metrics // https://management.azure.com/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azmon-rest-api-walkthrough/providers/Microsoft.Storage/accounts/contosodiag1/providers/microsoft.insights/metrics?metric=Transactions×pan=2017-09-19T02:00:00Z/2017-09-19T02:25:00Z&$filter=APIName eq 'GetBlobProperties'&interval=PT1M&aggregation=Count&api-version=2017-05-01-preview" - string timeSpan = "2017-09-19T02:00:00Z/2017-09-19T02:25:00Z"; + string timeSpan = "2018-03-02T23:48:11Z/2018-03-03T00:18:11Z"; ODataQuery filter = new ODataQuery("APIName eq 'GetBlobProperties'"); // Read data @@ -107,7 +107,7 @@ public void GetMetricsTest() odataQuery: filter, timespan: timeSpan, interval: TimeSpan.FromMinutes(1), - metric: "Transactions", + metricnames: "Transactions", aggregation: "Count", resultType: ResultType.Data); @@ -124,7 +124,7 @@ public void GetMetricsTest() odataQuery: filter, timespan: timeSpan, interval: TimeSpan.FromMinutes(1), - metric: "Transactions", + metricnames: "Transactions", aggregation: "Count", resultType: ResultType.Metadata); diff --git a/src/SDKs/Monitor/Monitor.Tests/SessionRecords/Monitor.Tests.Scenarios.MetricsTests/GetMetricDefinitionsTest.json b/src/SDKs/Monitor/Monitor.Tests/SessionRecords/Monitor.Tests.Scenarios.MetricsTests/GetMetricDefinitionsTest.json index 3b5d6d0c1725c..d2d6db8f74cdc 100644 --- a/src/SDKs/Monitor/Monitor.Tests/SessionRecords/Monitor.Tests.Scenarios.MetricsTests/GetMetricDefinitionsTest.json +++ b/src/SDKs/Monitor/Monitor.Tests/SessionRecords/Monitor.Tests.Scenarios.MetricsTests/GetMetricDefinitionsTest.json @@ -1,28 +1,28 @@ { "Entries": [ { - "RequestUri": "//subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions?api-version=2017-05-01-preview", - "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zLzA3YzBiMDlkLTlmNjktNGU2ZS04ZDA1LWY1OWY2NzI5OWNiMi9yZXNvdXJjZUdyb3Vwcy9SYWM0NlBvc3RTd2FwUkcvcHJvdmlkZXJzL01pY3Jvc29mdC5XZWIvc2l0ZXMvYWxlcnRydWxlVGVzdC9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL21ldHJpY0RlZmluaXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDUtMDEtcHJldmlldw==", + "RequestUri": "//subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions?api-version=2018-01-01", + "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zLzA3YzBiMDlkLTlmNjktNGU2ZS04ZDA1LWY1OWY2NzI5OWNiMi9yZXNvdXJjZUdyb3Vwcy9SYWM0NlBvc3RTd2FwUkcvcHJvdmlkZXJzL01pY3Jvc29mdC5XZWIvc2l0ZXMvYWxlcnRydWxlVGVzdC9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL21ldHJpY0RlZmluaXRpb25zP2FwaS12ZXJzaW9uPTIwMTgtMDEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "135ed604-4bf1-4886-845d-16f082b6ac30" + "ce51d652-acdf-42d8-96f5-7ecf270aa487" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.2114.0", - "OSName/WindowsServer2012R2Standard", - "OSVersion/6.3.9600", - "Microsoft.Azure.Management.Monitor.MonitorClient/0.18.1.0" + "FxVersion/4.7.2633.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.19.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/CpuTime\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"CpuTime\",\r\n \"localizedValue\": \"CPU Time\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Seconds\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Requests\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"Requests\",\r\n \"localizedValue\": \"Requests\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesReceived\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"BytesReceived\",\r\n \"localizedValue\": \"Data In\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Bytes\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesSent\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"BytesSent\",\r\n \"localizedValue\": \"Data Out\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Bytes\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http101\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"Http101\",\r\n \"localizedValue\": \"Http 101\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http2xx\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"Http2xx\",\r\n \"localizedValue\": \"Http 2xx\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http3xx\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"Http3xx\",\r\n \"localizedValue\": \"Http 3xx\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http401\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"Http401\",\r\n \"localizedValue\": \"Http 401\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http403\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"Http403\",\r\n \"localizedValue\": \"Http 403\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http404\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"Http404\",\r\n \"localizedValue\": \"Http 404\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http406\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"Http406\",\r\n \"localizedValue\": \"Http 406\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http4xx\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"Http4xx\",\r\n \"localizedValue\": \"Http 4xx\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http5xx\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"Http5xx\",\r\n \"localizedValue\": \"Http Server Errors\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/MemoryWorkingSet\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"MemoryWorkingSet\",\r\n \"localizedValue\": \"Memory working set\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Bytes\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageMemoryWorkingSet\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"AverageMemoryWorkingSet\",\r\n \"localizedValue\": \"Average memory working set\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Bytes\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageResponseTime\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"name\": {\r\n \"value\": \"AverageResponseTime\",\r\n \"localizedValue\": \"Average Response Time\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Seconds\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/CpuTime\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"CpuTime\",\r\n \"localizedValue\": \"CPU Time\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Seconds\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Requests\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"Requests\",\r\n \"localizedValue\": \"Requests\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesReceived\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"BytesReceived\",\r\n \"localizedValue\": \"Data In\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Bytes\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesSent\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"BytesSent\",\r\n \"localizedValue\": \"Data Out\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Bytes\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http101\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"Http101\",\r\n \"localizedValue\": \"Http 101\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http2xx\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"Http2xx\",\r\n \"localizedValue\": \"Http 2xx\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http3xx\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"Http3xx\",\r\n \"localizedValue\": \"Http 3xx\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http401\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"Http401\",\r\n \"localizedValue\": \"Http 401\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http403\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"Http403\",\r\n \"localizedValue\": \"Http 403\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http404\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"Http404\",\r\n \"localizedValue\": \"Http 404\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http406\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"Http406\",\r\n \"localizedValue\": \"Http 406\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http4xx\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"Http4xx\",\r\n \"localizedValue\": \"Http 4xx\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http5xx\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"Http5xx\",\r\n \"localizedValue\": \"Http Server Errors\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/MemoryWorkingSet\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"MemoryWorkingSet\",\r\n \"localizedValue\": \"Memory working set\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Bytes\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageMemoryWorkingSet\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"AverageMemoryWorkingSet\",\r\n \"localizedValue\": \"Average memory working set\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Bytes\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageResponseTime\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"AverageResponseTime\",\r\n \"localizedValue\": \"Average Response Time\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Seconds\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AppConnections\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"AppConnections\",\r\n \"localizedValue\": \"Connections\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Handles\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"Handles\",\r\n \"localizedValue\": \"Handle Count\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Threads\",\r\n \"resourceId\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest\",\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"name\": {\r\n \"value\": \"Threads\",\r\n \"localizedValue\": \"Thread Count\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"supportedAggregationTypes\": [\r\n \"None\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Total\",\r\n \"Count\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"Instance\",\r\n \"localizedValue\": \"Instance\"\r\n }\r\n ]\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "10291" + "19042" ], "Content-Type": [ "application/json" @@ -30,33 +30,39 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], "__HandlingServerId__": [ - "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_6" + "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_1" ], "x-ms-request-id": [ - "{4c6bf413-30e3-434e-99b5-af768ddcf5f8}" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14996" + "{57bc2d3d-831f-45f8-b565-8d2b23eeacb2}" ], "x-ms-correlation-request-id": [ - "4c6bf413-30e3-434e-99b5-af768ddcf5f8" + "57bc2d3d-831f-45f8-b565-8d2b23eeacb2" ], "x-ms-routing-request-id": [ - "WESTUS:20171006T182023Z:4c6bf413-30e3-434e-99b5-af768ddcf5f8" + "WESTUS2:20180303T005606Z:57bc2d3d-831f-45f8-b565-8d2b23eeacb2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ + "nosniff" + ], "Cache-Control": [ "no-cache" ], "Date": [ - "Fri, 06 Oct 2017 18:20:22 GMT" + "Sat, 03 Mar 2018 00:56:06 GMT" ], "Server": [ "Microsoft-IIS/8.5" ], + "X-AspNet-Version": [ + "4.0.30319" + ], "X-Powered-By": [ "ASP.NET" ] @@ -64,28 +70,28 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricDefinitions?api-version=2017-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTZiYjQ1YzktNWMxNC00OTE0LTg4NWUtYzZmZDZmMTMwZjdjL3Jlc291cmNlR3JvdXBzL2NvbnRvc28tZGF0YS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2NvbnRvc29kYXRhZGlhZzEvcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNEZWZpbml0aW9ucz9hcGktdmVyc2lvbj0yMDE3LTA1LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricDefinitions?api-version=2018-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTZiYjQ1YzktNWMxNC00OTE0LTg4NWUtYzZmZDZmMTMwZjdjL3Jlc291cmNlR3JvdXBzL2NvbnRvc28tZGF0YS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2NvbnRvc29kYXRhZGlhZzEvcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNEZWZpbml0aW9ucz9hcGktdmVyc2lvbj0yMDE4LTAxLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7a67b0ed-109a-4f2c-9cd3-265e489af847" + "37c09a96-3732-416f-a0dd-60e681dfad3f" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.2114.0", - "OSName/WindowsServer2012R2Standard", - "OSVersion/6.3.9600", - "Microsoft.Azure.Management.Monitor.MonitorClient/0.18.1.0" + "FxVersion/4.7.2633.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.19.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricdefinitions/UsedCapacity\",\r\n \"resourceId\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1\",\r\n \"category\": \"Capacity\",\r\n \"name\": {\r\n \"value\": \"UsedCapacity\",\r\n \"localizedValue\": \"Used capacity\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Bytes\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricdefinitions/Transactions\",\r\n \"resourceId\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1\",\r\n \"category\": \"Transaction\",\r\n \"name\": {\r\n \"value\": \"Transactions\",\r\n \"localizedValue\": \"Transactions\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"ResponseType\",\r\n \"localizedValue\": \"Response type\"\r\n },\r\n {\r\n \"value\": \"GeoType\",\r\n \"localizedValue\": \"Geo type\"\r\n },\r\n {\r\n \"value\": \"ApiName\",\r\n \"localizedValue\": \"API name\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricdefinitions/Ingress\",\r\n \"resourceId\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1\",\r\n \"category\": \"Transaction\",\r\n \"name\": {\r\n \"value\": \"Ingress\",\r\n \"localizedValue\": \"Ingress\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Bytes\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"GeoType\",\r\n \"localizedValue\": \"Geo type\"\r\n },\r\n {\r\n \"value\": \"ApiName\",\r\n \"localizedValue\": \"API name\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricdefinitions/Egress\",\r\n \"resourceId\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1\",\r\n \"category\": \"Transaction\",\r\n \"name\": {\r\n \"value\": \"Egress\",\r\n \"localizedValue\": \"Egress\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Bytes\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"GeoType\",\r\n \"localizedValue\": \"Geo type\"\r\n },\r\n {\r\n \"value\": \"ApiName\",\r\n \"localizedValue\": \"API name\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricdefinitions/SuccessServerLatency\",\r\n \"resourceId\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1\",\r\n \"category\": \"Transaction\",\r\n \"name\": {\r\n \"value\": \"SuccessServerLatency\",\r\n \"localizedValue\": \"Success Server Latency\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"MilliSeconds\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"GeoType\",\r\n \"localizedValue\": \"Geo type\"\r\n },\r\n {\r\n \"value\": \"ApiName\",\r\n \"localizedValue\": \"API name\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricdefinitions/SuccessE2ELatency\",\r\n \"resourceId\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1\",\r\n \"category\": \"Transaction\",\r\n \"name\": {\r\n \"value\": \"SuccessE2ELatency\",\r\n \"localizedValue\": \"Success E2E Latency\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"MilliSeconds\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"GeoType\",\r\n \"localizedValue\": \"Geo type\"\r\n },\r\n {\r\n \"value\": \"ApiName\",\r\n \"localizedValue\": \"API name\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricdefinitions/Availability\",\r\n \"resourceId\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1\",\r\n \"category\": \"Transaction\",\r\n \"name\": {\r\n \"value\": \"Availability\",\r\n \"localizedValue\": \"Availability\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Percent\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P30D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P30D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"GeoType\",\r\n \"localizedValue\": \"Geo type\"\r\n },\r\n {\r\n \"value\": \"ApiName\",\r\n \"localizedValue\": \"API name\"\r\n }\r\n ]\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricdefinitions/UsedCapacity\",\r\n \"resourceId\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1\",\r\n \"namespace\": \"Microsoft.Storage/storageAccounts\",\r\n \"category\": \"Capacity\",\r\n \"name\": {\r\n \"value\": \"UsedCapacity\",\r\n \"localizedValue\": \"Used capacity\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Bytes\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricdefinitions/Transactions\",\r\n \"resourceId\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1\",\r\n \"namespace\": \"Microsoft.Storage/storageAccounts\",\r\n \"category\": \"Transaction\",\r\n \"name\": {\r\n \"value\": \"Transactions\",\r\n \"localizedValue\": \"Transactions\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Count\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"ResponseType\",\r\n \"localizedValue\": \"Response type\"\r\n },\r\n {\r\n \"value\": \"GeoType\",\r\n \"localizedValue\": \"Geo type\"\r\n },\r\n {\r\n \"value\": \"ApiName\",\r\n \"localizedValue\": \"API name\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricdefinitions/Ingress\",\r\n \"resourceId\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1\",\r\n \"namespace\": \"Microsoft.Storage/storageAccounts\",\r\n \"category\": \"Transaction\",\r\n \"name\": {\r\n \"value\": \"Ingress\",\r\n \"localizedValue\": \"Ingress\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Bytes\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"GeoType\",\r\n \"localizedValue\": \"Geo type\"\r\n },\r\n {\r\n \"value\": \"ApiName\",\r\n \"localizedValue\": \"API name\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricdefinitions/Egress\",\r\n \"resourceId\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1\",\r\n \"namespace\": \"Microsoft.Storage/storageAccounts\",\r\n \"category\": \"Transaction\",\r\n \"name\": {\r\n \"value\": \"Egress\",\r\n \"localizedValue\": \"Egress\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Bytes\",\r\n \"primaryAggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"GeoType\",\r\n \"localizedValue\": \"Geo type\"\r\n },\r\n {\r\n \"value\": \"ApiName\",\r\n \"localizedValue\": \"API name\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricdefinitions/SuccessServerLatency\",\r\n \"resourceId\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1\",\r\n \"namespace\": \"Microsoft.Storage/storageAccounts\",\r\n \"category\": \"Transaction\",\r\n \"name\": {\r\n \"value\": \"SuccessServerLatency\",\r\n \"localizedValue\": \"Success Server Latency\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"MilliSeconds\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"GeoType\",\r\n \"localizedValue\": \"Geo type\"\r\n },\r\n {\r\n \"value\": \"ApiName\",\r\n \"localizedValue\": \"API name\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricdefinitions/SuccessE2ELatency\",\r\n \"resourceId\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1\",\r\n \"namespace\": \"Microsoft.Storage/storageAccounts\",\r\n \"category\": \"Transaction\",\r\n \"name\": {\r\n \"value\": \"SuccessE2ELatency\",\r\n \"localizedValue\": \"Success E2E Latency\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"MilliSeconds\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"GeoType\",\r\n \"localizedValue\": \"Geo type\"\r\n },\r\n {\r\n \"value\": \"ApiName\",\r\n \"localizedValue\": \"API name\"\r\n }\r\n ]\r\n },\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metricdefinitions/Availability\",\r\n \"resourceId\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1\",\r\n \"namespace\": \"Microsoft.Storage/storageAccounts\",\r\n \"category\": \"Transaction\",\r\n \"name\": {\r\n \"value\": \"Availability\",\r\n \"localizedValue\": \"Availability\"\r\n },\r\n \"isDimensionRequired\": false,\r\n \"unit\": \"Percent\",\r\n \"primaryAggregationType\": \"Average\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\"\r\n ],\r\n \"metricAvailabilities\": [\r\n {\r\n \"timeGrain\": \"PT1M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT5M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT15M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT30M\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT1H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT6H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"PT12H\",\r\n \"retention\": \"P93D\"\r\n },\r\n {\r\n \"timeGrain\": \"P1D\",\r\n \"retention\": \"P93D\"\r\n }\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"value\": \"GeoType\",\r\n \"localizedValue\": \"Geo type\"\r\n },\r\n {\r\n \"value\": \"ApiName\",\r\n \"localizedValue\": \"API name\"\r\n }\r\n ]\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Length": [ - "5219" + "7525" ], "Content-Type": [ "application/json" @@ -93,33 +99,39 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], "__HandlingServerId__": [ - "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_8" + "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_2" ], "x-ms-request-id": [ - "{db5cbae3-5fb6-4724-ada7-455dd07a45a7}" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14931" + "{f74356a4-b199-437c-88ea-d9fe716a154c}" ], "x-ms-correlation-request-id": [ - "db5cbae3-5fb6-4724-ada7-455dd07a45a7" + "f74356a4-b199-437c-88ea-d9fe716a154c" ], "x-ms-routing-request-id": [ - "WESTUS:20171006T182024Z:db5cbae3-5fb6-4724-ada7-455dd07a45a7" + "WESTUS2:20180303T005607Z:f74356a4-b199-437c-88ea-d9fe716a154c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ + "nosniff" + ], "Cache-Control": [ "no-cache" ], "Date": [ - "Fri, 06 Oct 2017 18:20:23 GMT" + "Sat, 03 Mar 2018 00:56:06 GMT" ], "Server": [ "Microsoft-IIS/8.5" ], + "X-AspNet-Version": [ + "4.0.30319" + ], "X-Powered-By": [ "ASP.NET" ] diff --git a/src/SDKs/Monitor/Monitor.Tests/SessionRecords/Monitor.Tests.Scenarios.MetricsTests/GetMetricsTest.json b/src/SDKs/Monitor/Monitor.Tests/SessionRecords/Monitor.Tests.Scenarios.MetricsTests/GetMetricsTest.json index cdb875e2e36a7..fd9d1360aec94 100644 --- a/src/SDKs/Monitor/Monitor.Tests/SessionRecords/Monitor.Tests.Scenarios.MetricsTests/GetMetricsTest.json +++ b/src/SDKs/Monitor/Monitor.Tests/SessionRecords/Monitor.Tests.Scenarios.MetricsTests/GetMetricsTest.json @@ -1,28 +1,28 @@ { "Entries": [ { - "RequestUri": "//subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metrics?api-version=2017-05-01-preview", - "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zLzA3YzBiMDlkLTlmNjktNGU2ZS04ZDA1LWY1OWY2NzI5OWNiMi9yZXNvdXJjZUdyb3Vwcy9SYWM0NlBvc3RTd2FwUkcvcHJvdmlkZXJzL01pY3Jvc29mdC5XZWIvc2l0ZXMvYWxlcnRydWxlVGVzdC9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL21ldHJpY3M/YXBpLXZlcnNpb249MjAxNy0wNS0wMS1wcmV2aWV3", + "RequestUri": "//subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metrics?api-version=2018-01-01", + "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zLzA3YzBiMDlkLTlmNjktNGU2ZS04ZDA1LWY1OWY2NzI5OWNiMi9yZXNvdXJjZUdyb3Vwcy9SYWM0NlBvc3RTd2FwUkcvcHJvdmlkZXJzL01pY3Jvc29mdC5XZWIvc2l0ZXMvYWxlcnRydWxlVGVzdC9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL21ldHJpY3M/YXBpLXZlcnNpb249MjAxOC0wMS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "93094991-2973-43de-860b-f4c90fa64635" + "d8da277c-be96-4818-b805-3ce7dc0d1795" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.2114.0", - "OSName/WindowsServer2012R2Standard", - "OSVersion/6.3.9600", - "Microsoft.Azure.Management.Monitor.MonitorClient/0.18.1.0" + "FxVersion/4.7.2633.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.19.0.0" ] }, - "ResponseBody": "{\r\n \"cost\": 0,\r\n \"timespan\": \"2017-10-06T17:11:47Z/2017-10-06T18:11:47Z\",\r\n \"interval\": \"PT1M\",\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/Microsoft.Insights/metrics/CpuTime\",\r\n \"type\": \"Microsoft.Insights/metrics\",\r\n \"name\": {\r\n \"value\": \"CpuTime\",\r\n \"localizedValue\": \"CPU Time\"\r\n },\r\n \"unit\": \"Seconds\",\r\n \"timeseries\": [\r\n {\r\n \"metadatavalues\": [],\r\n \"data\": [\r\n {\r\n \"timeStamp\": \"2017-10-06T17:11:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:12:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:13:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:14:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:15:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:16:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:17:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:18:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:19:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:20:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:21:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:22:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:23:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:24:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:25:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:26:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:27:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:28:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:29:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:30:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:31:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:32:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:33:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:34:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:35:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:36:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:37:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:38:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:39:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:40:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:41:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:42:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:43:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:44:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:45:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:46:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:47:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:48:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:49:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:50:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:51:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:52:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:53:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:54:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:55:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:56:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:57:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:58:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T17:59:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T18:00:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T18:01:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T18:02:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T18:03:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T18:04:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T18:05:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T18:06:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T18:07:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T18:08:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T18:09:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-10-06T18:10:00Z\",\r\n \"total\": 0.0\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"cost\": 0,\r\n \"timespan\": \"2018-03-02T23:56:42Z/2018-03-03T00:56:42Z\",\r\n \"interval\": \"PT1M\",\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/Microsoft.Insights/metrics/CpuTime\",\r\n \"type\": \"Microsoft.Insights/metrics\",\r\n \"name\": {\r\n \"value\": \"CpuTime\",\r\n \"localizedValue\": \"CPU Time\"\r\n },\r\n \"unit\": \"Seconds\",\r\n \"timeseries\": [\r\n {\r\n \"metadatavalues\": [],\r\n \"data\": [\r\n {\r\n \"timeStamp\": \"2018-03-02T23:56:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-02T23:57:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-02T23:58:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-02T23:59:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:00:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:01:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:02:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:03:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:04:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:05:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:06:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:07:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:08:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:09:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:10:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:11:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:12:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:13:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:14:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:15:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:16:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:17:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:18:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:19:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:20:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:21:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:22:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:23:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:24:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:25:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:26:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:27:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:28:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:29:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:30:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:31:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:32:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:33:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:34:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:35:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:36:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:37:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:38:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:39:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:40:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:41:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:42:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:43:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:44:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:45:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:46:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:47:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:48:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:49:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:50:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:51:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:52:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:53:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:54:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2018-03-03T00:55:00Z\",\r\n \"total\": 0.0\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ],\r\n \"namespace\": \"Microsoft.Web/sites\",\r\n \"resourceregion\": \"southcentralus\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "3368" + "3436" ], "Content-Type": [ "application/json" @@ -30,33 +30,39 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], "__HandlingServerId__": [ - "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_13" + "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_5" ], "x-ms-request-id": [ - "{1736e8c6-ff5c-40e9-bb45-fd855156ee6b}" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14995" + "{84397652-ecaf-409c-ad8f-f84fb623a0d4}" ], "x-ms-correlation-request-id": [ - "1736e8c6-ff5c-40e9-bb45-fd855156ee6b" + "84397652-ecaf-409c-ad8f-f84fb623a0d4" ], "x-ms-routing-request-id": [ - "WESTUS2:20171006T181148Z:1736e8c6-ff5c-40e9-bb45-fd855156ee6b" + "WESTUS2:20180303T005641Z:84397652-ecaf-409c-ad8f-f84fb623a0d4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ + "nosniff" + ], "Cache-Control": [ "no-cache" ], "Date": [ - "Fri, 06 Oct 2017 18:11:47 GMT" + "Sat, 03 Mar 2018 00:56:41 GMT" ], "Server": [ "Microsoft-IIS/8.5" ], + "X-AspNet-Version": [ + "4.0.30319" + ], "X-Powered-By": [ "ASP.NET" ] @@ -64,22 +70,22 @@ "StatusCode": 200 }, { - "RequestUri": "//subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metrics?resultType=Metadata&api-version=2017-05-01-preview", - "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zLzA3YzBiMDlkLTlmNjktNGU2ZS04ZDA1LWY1OWY2NzI5OWNiMi9yZXNvdXJjZUdyb3Vwcy9SYWM0NlBvc3RTd2FwUkcvcHJvdmlkZXJzL01pY3Jvc29mdC5XZWIvc2l0ZXMvYWxlcnRydWxlVGVzdC9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL21ldHJpY3M/cmVzdWx0VHlwZT1NZXRhZGF0YSZhcGktdmVyc2lvbj0yMDE3LTA1LTAxLXByZXZpZXc=", + "RequestUri": "//subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metrics?resultType=Metadata&api-version=2018-01-01", + "EncodedRequestUri": "Ly9zdWJzY3JpcHRpb25zLzA3YzBiMDlkLTlmNjktNGU2ZS04ZDA1LWY1OWY2NzI5OWNiMi9yZXNvdXJjZUdyb3Vwcy9SYWM0NlBvc3RTd2FwUkcvcHJvdmlkZXJzL01pY3Jvc29mdC5XZWIvc2l0ZXMvYWxlcnRydWxlVGVzdC9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL21ldHJpY3M/cmVzdWx0VHlwZT1NZXRhZGF0YSZhcGktdmVyc2lvbj0yMDE4LTAxLTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a15e2b1f-a60b-4523-a68b-1d9488c6b5a0" + "20f87323-c118-4bb5-8b53-6f5da95dcd67" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.2114.0", - "OSName/WindowsServer2012R2Standard", - "OSVersion/6.3.9600", - "Microsoft.Azure.Management.Monitor.MonitorClient/0.18.1.0" + "FxVersion/4.7.2633.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.19.0.0" ] }, "ResponseBody": "{\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Metadata path requires at least one dimension to be set\"\r\n}", @@ -91,28 +97,31 @@ "application/json" ], "__HandlingServerId__": [ - "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_11" + "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_5" ], "x-ms-request-id": [ - "{c9190ca2-0be8-4060-ba33-14d866aa9e4e}" + "{e8651238-397c-4098-b65f-36371cb4677e}" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14994" + "14998" ], "x-ms-correlation-request-id": [ - "c9190ca2-0be8-4060-ba33-14d866aa9e4e" + "e8651238-397c-4098-b65f-36371cb4677e" ], "x-ms-routing-request-id": [ - "WESTUS2:20171006T181149Z:c9190ca2-0be8-4060-ba33-14d866aa9e4e" + "WESTUS2:20180303T005641Z:e8651238-397c-4098-b65f-36371cb4677e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ + "nosniff" + ], "Cache-Control": [ "no-cache" ], "Date": [ - "Fri, 06 Oct 2017 18:11:48 GMT" + "Sat, 03 Mar 2018 00:56:41 GMT" ], "Server": [ "Microsoft-IIS/8.5" @@ -127,28 +136,28 @@ "StatusCode": 400 }, { - "RequestUri": "/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metrics?$filter=APIName%20eq%20'GetBlobProperties'×pan=2017-09-19T02:00:00Z%2F2017-09-19T02:25:00Z&interval=PT1M&metric=Transactions&aggregation=Count&resultType=Data&api-version=2017-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTZiYjQ1YzktNWMxNC00OTE0LTg4NWUtYzZmZDZmMTMwZjdjL3Jlc291cmNlR3JvdXBzL2NvbnRvc28tZGF0YS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2NvbnRvc29kYXRhZGlhZzEvcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNzPyRmaWx0ZXI9QVBJTmFtZSUyMGVxJTIwJ0dldEJsb2JQcm9wZXJ0aWVzJyZ0aW1lc3Bhbj0yMDE3LTA5LTE5VDAyJTNBMDAlM0EwMFolMkYyMDE3LTA5LTE5VDAyJTNBMjUlM0EwMFomaW50ZXJ2YWw9UFQxTSZtZXRyaWM9VHJhbnNhY3Rpb25zJmFnZ3JlZ2F0aW9uPUNvdW50JnJlc3VsdFR5cGU9RGF0YSZhcGktdmVyc2lvbj0yMDE3LTA1LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metrics?$filter=APIName%20eq%20'GetBlobProperties'×pan=2018-03-02T23:48:11Z%2F2018-03-03T00:18:11Z&interval=PT1M&metricnames=Transactions&aggregation=Count&resultType=Data&api-version=2018-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTZiYjQ1YzktNWMxNC00OTE0LTg4NWUtYzZmZDZmMTMwZjdjL3Jlc291cmNlR3JvdXBzL2NvbnRvc28tZGF0YS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2NvbnRvc29kYXRhZGlhZzEvcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNzPyRmaWx0ZXI9QVBJTmFtZSUyMGVxJTIwJ0dldEJsb2JQcm9wZXJ0aWVzJyZ0aW1lc3Bhbj0yMDE4LTAzLTAyVDIzJTNBNDglM0ExMVolMkYyMDE4LTAzLTAzVDAwJTNBMTglM0ExMVomaW50ZXJ2YWw9UFQxTSZtZXRyaWNuYW1lcz1UcmFuc2FjdGlvbnMmYWdncmVnYXRpb249Q291bnQmcmVzdWx0VHlwZT1EYXRhJmFwaS12ZXJzaW9uPTIwMTgtMDEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bde1ba74-bf18-45ad-ad8c-add908f5342f" + "0590b886-cd4a-4cb7-9651-bbd32a3ae6b2" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.2114.0", - "OSName/WindowsServer2012R2Standard", - "OSVersion/6.3.9600", - "Microsoft.Azure.Management.Monitor.MonitorClient/0.18.1.0" + "FxVersion/4.7.2633.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.19.0.0" ] }, - "ResponseBody": "{\r\n \"cost\": 0,\r\n \"timespan\": \"2017-09-19T02:00:00Z/2017-09-19T02:25:00Z\",\r\n \"interval\": \"PT1M\",\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/Microsoft.Insights/metrics/Transactions\",\r\n \"type\": \"Microsoft.Insights/metrics\",\r\n \"name\": {\r\n \"value\": \"Transactions\",\r\n \"localizedValue\": \"Transactions\"\r\n },\r\n \"unit\": \"Count\",\r\n \"timeseries\": [\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"GetBlobProperties\"\r\n }\r\n ],\r\n \"data\": [\r\n {\r\n \"timeStamp\": \"2017-09-19T02:00:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:01:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:02:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:03:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:04:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:05:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:06:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:07:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:08:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:09:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:10:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:11:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:12:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:13:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:14:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:15:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:16:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:17:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:18:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:19:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:20:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:21:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:22:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:23:00Z\",\r\n \"count\": 2.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-09-19T02:24:00Z\",\r\n \"count\": 2.0\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"cost\": 0,\r\n \"timespan\": \"2018-03-02T23:48:11Z/2018-03-03T00:18:11Z\",\r\n \"interval\": \"PT1M\",\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/Microsoft.Insights/metrics/Transactions\",\r\n \"type\": \"Microsoft.Insights/metrics\",\r\n \"name\": {\r\n \"value\": \"Transactions\",\r\n \"localizedValue\": \"Transactions\"\r\n },\r\n \"unit\": \"Count\",\r\n \"timeseries\": []\r\n }\r\n ],\r\n \"namespace\": \"Microsoft.Storage/storageAccounts\",\r\n \"resourceregion\": \"westcentralus\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "1762" + "505" ], "Content-Type": [ "application/json" @@ -156,33 +165,39 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14995" + ], "__HandlingServerId__": [ - "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_14" + "shoeboxproxyprod_shoeboxproxyprod-red_MetricsMP_IN_9" ], "x-ms-request-id": [ - "{d660068f-53c6-447f-be5c-2fe943995945}" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14916" + "{b6f0a913-1808-42fc-9adb-e8f318808996}" ], "x-ms-correlation-request-id": [ - "d660068f-53c6-447f-be5c-2fe943995945" + "b6f0a913-1808-42fc-9adb-e8f318808996" ], "x-ms-routing-request-id": [ - "WESTUS2:20171006T181153Z:d660068f-53c6-447f-be5c-2fe943995945" + "WESTUS2:20180303T005642Z:b6f0a913-1808-42fc-9adb-e8f318808996" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ + "nosniff" + ], "Cache-Control": [ "no-cache" ], "Date": [ - "Fri, 06 Oct 2017 18:11:52 GMT" + "Sat, 03 Mar 2018 00:56:42 GMT" ], "Server": [ "Microsoft-IIS/8.5" ], + "X-AspNet-Version": [ + "4.0.30319" + ], "X-Powered-By": [ "ASP.NET" ] @@ -190,28 +205,28 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metrics?$filter=APIName%20eq%20'*'×pan=2017-09-19T02:00:00Z%2F2017-09-19T02:25:00Z&interval=PT1M&metric=Transactions&aggregation=Count&resultType=Metadata&api-version=2017-05-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTZiYjQ1YzktNWMxNC00OTE0LTg4NWUtYzZmZDZmMTMwZjdjL3Jlc291cmNlR3JvdXBzL2NvbnRvc28tZGF0YS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2NvbnRvc29kYXRhZGlhZzEvcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNzPyRmaWx0ZXI9QVBJTmFtZSUyMGVxJTIwJyonJnRpbWVzcGFuPTIwMTctMDktMTlUMDIlM0EwMCUzQTAwWiUyRjIwMTctMDktMTlUMDIlM0EyNSUzQTAwWiZpbnRlcnZhbD1QVDFNJm1ldHJpYz1UcmFuc2FjdGlvbnMmYWdncmVnYXRpb249Q291bnQmcmVzdWx0VHlwZT1NZXRhZGF0YSZhcGktdmVyc2lvbj0yMDE3LTA1LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/microsoft.insights/metrics?$filter=APIName%20eq%20'*'×pan=2018-03-02T23:48:11Z%2F2018-03-03T00:18:11Z&interval=PT1M&metricnames=Transactions&aggregation=Count&resultType=Metadata&api-version=2018-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTZiYjQ1YzktNWMxNC00OTE0LTg4NWUtYzZmZDZmMTMwZjdjL3Jlc291cmNlR3JvdXBzL2NvbnRvc28tZGF0YS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL2NvbnRvc29kYXRhZGlhZzEvcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNzPyRmaWx0ZXI9QVBJTmFtZSUyMGVxJTIwJyonJnRpbWVzcGFuPTIwMTgtMDMtMDJUMjMlM0E0OCUzQTExWiUyRjIwMTgtMDMtMDNUMDAlM0ExOCUzQTExWiZpbnRlcnZhbD1QVDFNJm1ldHJpY25hbWVzPVRyYW5zYWN0aW9ucyZhZ2dyZWdhdGlvbj1Db3VudCZyZXN1bHRUeXBlPU1ldGFkYXRhJmFwaS12ZXJzaW9uPTIwMTgtMDEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "64428079-6bc9-4db9-bc35-03283a45ab66" + "6819f968-2a6d-4968-874a-d648a18ae1f1" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.2114.0", - "OSName/WindowsServer2012R2Standard", - "OSVersion/6.3.9600", - "Microsoft.Azure.Management.Monitor.MonitorClient/0.18.1.0" + "FxVersion/4.7.2633.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.19.0.0" ] }, - "ResponseBody": "{\r\n \"timespan\": \"2017-09-19T02:00:00Z/2017-09-19T02:25:00Z\",\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/Microsoft.Insights/metrics/Transactions\",\r\n \"type\": \"Microsoft.Insights/metrics\",\r\n \"name\": {\r\n \"value\": \"Transactions\",\r\n \"localizedValue\": \"Transactions\"\r\n },\r\n \"unit\": \"Count\",\r\n \"timeseries\": [\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"GetBlobServiceProperties\"\r\n }\r\n ]\r\n },\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"GetQueueServiceProperties\"\r\n }\r\n ]\r\n },\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"DeleteBlob\"\r\n }\r\n ]\r\n },\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"SetBlobProperties\"\r\n }\r\n ]\r\n },\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"QueryEntities\"\r\n }\r\n ]\r\n },\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"GetFileServiceProperties\"\r\n }\r\n ]\r\n },\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"PutPage\"\r\n }\r\n ]\r\n },\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"QueryTables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"GetBlobProperties\"\r\n }\r\n ]\r\n },\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"GetPageRegions\"\r\n }\r\n ]\r\n },\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"GetTableServiceProperties\"\r\n }\r\n ]\r\n },\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"EntityGroupTransaction\"\r\n }\r\n ]\r\n },\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"GetBlob\"\r\n }\r\n ]\r\n },\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"PutBlob\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"timespan\": \"2018-03-02T23:48:11Z/2018-03-03T00:18:11Z\",\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1/providers/Microsoft.Insights/metrics/Transactions\",\r\n \"type\": \"Microsoft.Insights/metrics\",\r\n \"name\": {\r\n \"value\": \"Transactions\",\r\n \"localizedValue\": \"Transactions\"\r\n },\r\n \"unit\": \"Count\",\r\n \"timeseries\": [\r\n {\r\n \"metadatavalues\": [\r\n {\r\n \"name\": {\r\n \"value\": \"apiname\",\r\n \"localizedValue\": \"apiname\"\r\n },\r\n \"value\": \"EntityGroupTransaction\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ],\r\n \"namespace\": \"Microsoft.Storage/storageAccounts\",\r\n \"resourceregion\": \"westcentralus\"\r\n}", "ResponseHeaders": { "Content-Length": [ - "1851" + "587" ], "Content-Type": [ "application/json" @@ -219,33 +234,39 @@ "Vary": [ "Accept-Encoding" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], "__HandlingServerId__": [ - "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_14" + "shoeboxproxyprod_shoeboxproxyprod-red_MetricsMP_IN_9" ], "x-ms-request-id": [ - "{e6686159-2eaf-4e3f-83f6-62ddf30620ba}" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14914" + "{d702a302-3922-4a7c-ae46-856d505666fc}" ], "x-ms-correlation-request-id": [ - "e6686159-2eaf-4e3f-83f6-62ddf30620ba" + "d702a302-3922-4a7c-ae46-856d505666fc" ], "x-ms-routing-request-id": [ - "WESTUS2:20171006T181221Z:e6686159-2eaf-4e3f-83f6-62ddf30620ba" + "WESTUS2:20180303T005642Z:d702a302-3922-4a7c-ae46-856d505666fc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ + "nosniff" + ], "Cache-Control": [ "no-cache" ], "Date": [ - "Fri, 06 Oct 2017 18:12:20 GMT" + "Sat, 03 Mar 2018 00:56:42 GMT" ], "Server": [ "Microsoft-IIS/8.5" ], + "X-AspNet-Version": [ + "4.0.30319" + ], "X-Powered-By": [ "ASP.NET" ] diff --git a/src/SDKs/Monitor/changelog.md b/src/SDKs/Monitor/changelog.md index a62823850755f..11d5a39f4c70a 100644 --- a/src/SDKs/Monitor/changelog.md +++ b/src/SDKs/Monitor/changelog.md @@ -1,6 +1,41 @@ ## Microsoft.Azure.Management.Monitor release notes -### Changes in 0.17.0-preview +### Changes in 0.19.0-preview + +**Notes** + +- Approx. date of publication (2018-03) +- New receivers added to Actiongroup. +- Added a patch action for Actiongroup. +- The attributes of the EventData class are all explicitly marked as read-only. These objects were and still are only returned by the Activity Logs requests, i.e. they have always behaved as read-only attributes. +- The new Api version for the metrics Api and metricDefinitions Api is 2018-01-01. The previous Api version was 2017-05-01-preview. +- A new optional query parameter called 'metricnamespace' is added to metricDefinitions Api. +- Optional query parameters 'top', 'orderby' and 'metricnamespace' are added to metrics Api. +- MetricsTests were updated and sessions re-recorded. + + +**Breaking change** + +- The operations that used to be grouped under **data-plane** were really **resource-management** operations. All those operations were moved to the **resource-management** group and the **data-plane** groups has been removed. +- As a consequence of the previous item the class namespace **Microsoft.Azure.Management.Monitor.Management** has been removed. All the artifacts (e.g. classes, interfaces) are in the namespace: **Microsoft.Azure.Management.Monitor**. +- Another consequence of the first item is that the client **MonitorClient** does not exist anymore. Only the client **MonitorManagementClient** remains and it exposes all the operations of the SDK. +- A query parameter was renamed from 'metric' to 'metricnames' for metrics Api. + +### Changes in 0.18.1-preview + +**Notes** + +- Approx. date of publication (2017-10-20) +- Fixing doc issues +- Adding two values to the metric unit enumeration, generating metadata files +- Adding multi-dimensional metrics tests + +### Changes in 0.18.0-preview + +**Notes** + +- Approx. date of publication (2017-09-20) +- Release 0.17.0-preview was not published. **Breaking change** @@ -24,9 +59,27 @@ - The new Api version for the whole metrics API is 2017-05-01-preview. Before it was 2016-09-01 for metrics and 2016-03-01 for metric definitions. - The calls can retrieve single-dimension metrics with the proper set of parameters. So the change is not completely a breaking change, but it would certainly require some adjustments in the calls. +### Changes in 0.16.1-preview + **Notes** -- New receivers added to Actiongroup, swagger is already updated and this is version is like a base version now. -- Going forward changes in Actiongroup will be done with change in version. -- Added a patch action for Actiongroup. +- Approx. date of publication (2017-08-23) +- Adding ActivityLogAlerts and ActionGroups APIs and their unit tests +- Adding PATCH operations and the corresponding unit tests +- Adding scenario tests, improving and re-recording them +- Making sure the scenario tests point to the more recent version of the Resource Manager.dll + +### Changes in 0.16.0-preview + +**Notes** +- Approx. date of publication (2017-04-27) +- Fixing version of Newtonsoft.Json +- Adding some unit tests and making sure the Tests project works. +- Commenting imports in the project file +- Changing class namespace of the generated code +- Changing namespace and assembly name for compliance +- Leaving the Swagger spec for DiagnosticSettings out of the generation and using the previous API again +- Updating the generate.cmd command to the latest commit for the arm-monitor composite file +- Making the default class namespace consistent with the dll and nuget package names +- Removing unused test files (DiagnosticSettings) and changing the project file accordingly. diff --git a/src/SDKs/_metadata/monitor_resource-manager.txt b/src/SDKs/_metadata/monitor_resource-manager.txt index abd6bfa1b7fae..f111405e9ea88 100644 --- a/src/SDKs/_metadata/monitor_resource-manager.txt +++ b/src/SDKs/_metadata/monitor_resource-manager.txt @@ -1,11 +1,11 @@ -2018-02-07 18:40:28 UTC +2018-03-07 18:38:21 UTC 1) azure-rest-api-specs repository information GitHub user: Azure Branch: master -Commit: 0ca5641ea0bbacfe14d240a871fb322fc8981194 +Commit: ea2f44831283324ba8887cb3ebdc2c728c57246c 2) AutoRest information Requested version: latest -Bootstrapper version: C:\Users\shriku\AppData\Roaming\npm `-- autorest@2.0.4245 +Bootstrapper version: C:\Users\pkamath\AppData\Roaming\npm `-- autorest@2.0.4245 Latest installed version: