diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleDataSource.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleDataSource.cs index 0ba640a3c1b0..ccdcce05410c 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleDataSource.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleDataSource.cs @@ -32,7 +32,8 @@ public RuleDataSource() /// Initializes a new instance of the RuleDataSource class. /// /// the resource identifier of the resource - /// the rule monitors. + /// the rule monitors. **NOTE**: this property cannot be updated for an + /// existing rule. public RuleDataSource(string resourceUri = default(string)) { ResourceUri = resourceUri; @@ -46,7 +47,8 @@ public RuleDataSource() /// /// Gets or sets the resource identifier of the resource the rule - /// monitors. + /// monitors. **NOTE**: this property cannot be updated for an existing + /// rule. /// [JsonProperty(PropertyName = "resourceUri")] public string ResourceUri { get; set; } diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleEmailAction.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleEmailAction.cs index 7e266177f49a..f3fe89502920 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleEmailAction.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleEmailAction.cs @@ -36,10 +36,10 @@ public RuleEmailAction() /// Initializes a new instance of the RuleEmailAction class. /// /// Whether the administrators - /// (service and co-adiminstrators) of the service should be notified + /// (service and co-administrators) of the service should be notified /// when the alert is activated. /// the list of administrator's custom email - /// addresses notifiy of the activation of the alert. + /// addresses to notify of the activation of the alert. public RuleEmailAction(bool? sendToServiceOwners = default(bool?), IList customEmails = default(IList)) { SendToServiceOwners = sendToServiceOwners; @@ -54,15 +54,15 @@ public RuleEmailAction() /// /// Gets or sets whether the administrators (service and - /// co-adiminstrators) of the service should be notified when the alert + /// co-administrators) of the service should be notified when the alert /// is activated. /// [JsonProperty(PropertyName = "sendToServiceOwners")] public bool? SendToServiceOwners { get; set; } /// - /// Gets or sets the list of administrator's custom email addresses - /// notifiy of the activation of the alert. + /// Gets or sets the list of administrator's custom email addresses to + /// notify of the activation of the alert. /// [JsonProperty(PropertyName = "customEmails")] public IList CustomEmails { get; set; } diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleManagementEventDataSource.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleManagementEventDataSource.cs index 3d0dc2e439bd..25093f0bc209 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleManagementEventDataSource.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleManagementEventDataSource.cs @@ -36,7 +36,8 @@ public RuleManagementEventDataSource() /// class. /// /// the resource identifier of the resource - /// the rule monitors. + /// the rule monitors. **NOTE**: this property cannot be updated for an + /// existing rule. /// the event name. /// the event source. /// the level. diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleMetricDataSource.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleMetricDataSource.cs index ea042dcf8190..8b25ea8d8931 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleMetricDataSource.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleMetricDataSource.cs @@ -34,7 +34,8 @@ public RuleMetricDataSource() /// Initializes a new instance of the RuleMetricDataSource class. /// /// the resource identifier of the resource - /// the rule monitors. + /// the rule monitors. **NOTE**: this property cannot be updated for an + /// existing rule. /// the name of the metric that defines what /// the rule monitors. public RuleMetricDataSource(string resourceUri = default(string), string metricName = default(string)) diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleWebhookAction.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleWebhookAction.cs index f2d583404cae..28dfef8465b3 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleWebhookAction.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/RuleWebhookAction.cs @@ -35,7 +35,7 @@ public RuleWebhookAction() /// /// Initializes a new instance of the RuleWebhookAction class. /// - /// the service uri to Post the notitication + /// the service uri to Post the notification /// when the alert activates or resolves. /// the dictionary of custom properties to /// include with the post operation. These data are appended to the @@ -53,7 +53,7 @@ public RuleWebhookAction() partial void CustomInit(); /// - /// Gets or sets the service uri to Post the notitication when the + /// Gets or sets the service uri to Post the notification when the /// alert activates or resolves. /// [JsonProperty(PropertyName = "serviceUri")] diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/EventCategoriesOperations.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/EventCategoriesOperations.cs index d93d00c96d2a..19f2ca6d26e1 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/EventCategoriesOperations.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/EventCategoriesOperations.cs @@ -52,7 +52,7 @@ internal EventCategoriesOperations(MonitorClient client) /// /// Get the list of available event categories supported in the Activity Logs - /// Service.<br>The current list includes the following: Aministrative, + /// Service.<br>The current list includes the following: Administrative, /// Security, ServiceHealth, Alert, Recommendation, Policy. /// /// diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/EventCategoriesOperationsExtensions.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/EventCategoriesOperationsExtensions.cs index 556ccfe3ac9e..10d2bb410c97 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/EventCategoriesOperationsExtensions.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/EventCategoriesOperationsExtensions.cs @@ -25,7 +25,7 @@ public static partial class EventCategoriesOperationsExtensions { /// /// Get the list of available event categories supported in the Activity Logs - /// Service.<br>The current list includes the following: Aministrative, + /// Service.<br>The current list includes the following: Administrative, /// Security, ServiceHealth, Alert, Recommendation, Policy. /// /// @@ -38,7 +38,7 @@ public static IEnumerable List(this IEventCategoriesOperation /// /// Get the list of available event categories supported in the Activity Logs - /// Service.<br>The current list includes the following: Aministrative, + /// Service.<br>The current list includes the following: Administrative, /// Security, ServiceHealth, Alert, Recommendation, Policy. /// /// diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/IEventCategoriesOperations.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/IEventCategoriesOperations.cs index 52969d4e2361..85fb2565dcb4 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/IEventCategoriesOperations.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/IEventCategoriesOperations.cs @@ -26,7 +26,7 @@ public partial interface IEventCategoriesOperations /// /// Get the list of available event categories supported in the /// Activity Logs Service.<br>The current list includes the - /// following: Aministrative, Security, ServiceHealth, Alert, + /// following: Administrative, Security, ServiceHealth, Alert, /// Recommendation, Policy. /// /// diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/EventData.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/EventData.cs index 68f813aa32d5..a66819b05d13 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/EventData.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/EventData.cs @@ -40,7 +40,7 @@ public EventData() /// 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 occurence time of the event, and the + /// 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 @@ -281,7 +281,7 @@ public EventData() /// 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 occurence time of the event, and the time that the event is + /// the occurrence time of the event, and the time that the event is /// submitted to the Azure logging infrastructure. /// [JsonProperty(PropertyName = "submissionTimestamp")] diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/Metric.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/Metric.cs index f48fc9b4c7f6..e4337660f22a 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/Metric.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/Metric.cs @@ -40,7 +40,7 @@ public Metric() /// i.e. it is localizable string. /// the unit of the metric. Possible values include: /// 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', - /// 'Percent', 'MilliSeconds' + /// 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified' /// the time series returned when a data query /// is performed. public Metric(string id, string type, LocalizableString name, Unit unit, IList timeseries) @@ -80,7 +80,7 @@ public Metric(string id, string type, LocalizableString name, Unit unit, IList /// Gets or sets the unit of the metric. Possible values include: /// 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', - /// 'Percent', 'MilliSeconds' + /// 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified' /// [JsonProperty(PropertyName = "unit")] public Unit Unit { get; set; } diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/MetricDefinition.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/MetricDefinition.cs index b3024afcb2cf..e1e3aefd69ec 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/MetricDefinition.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/MetricDefinition.cs @@ -40,7 +40,7 @@ public MetricDefinition() /// i.e. it is a localizable string. /// the unit of the metric. Possible values include: /// 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', - /// 'Percent', 'MilliSeconds' + /// 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified' /// the primary aggregation type /// value defining how to use the values for display. Possible values /// include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', @@ -92,7 +92,7 @@ public MetricDefinition() /// /// Gets or sets the unit of the metric. Possible values include: /// 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', - /// 'Percent', 'MilliSeconds' + /// 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified' /// [JsonProperty(PropertyName = "unit")] public Unit? Unit { get; set; } diff --git a/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/Unit.cs b/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/Unit.cs index eb71b4240537..954a893a8f71 100644 --- a/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/Unit.cs +++ b/src/SDKs/Monitor/Management.Monitor/Generated/Monitor/Models/Unit.cs @@ -35,7 +35,11 @@ public enum Unit [EnumMember(Value = "Percent")] Percent, [EnumMember(Value = "MilliSeconds")] - MilliSeconds + MilliSeconds, + [EnumMember(Value = "ByteSeconds")] + ByteSeconds, + [EnumMember(Value = "Unspecified")] + Unspecified } internal static class UnitEnumExtension { @@ -60,6 +64,10 @@ internal static string ToSerializedValue(this Unit value) return "Percent"; case Unit.MilliSeconds: return "MilliSeconds"; + case Unit.ByteSeconds: + return "ByteSeconds"; + case Unit.Unspecified: + return "Unspecified"; } return null; } @@ -82,6 +90,10 @@ internal static string ToSerializedValue(this Unit value) return Unit.Percent; case "MilliSeconds": return Unit.MilliSeconds; + case "ByteSeconds": + return Unit.ByteSeconds; + case "Unspecified": + return Unit.Unspecified; } return null; } diff --git a/src/SDKs/Monitor/Management.Monitor/Microsoft.Azure.Management.Monitor.csproj b/src/SDKs/Monitor/Management.Monitor/Microsoft.Azure.Management.Monitor.csproj index 06ba01cc8db7..2172261bc5df 100644 --- a/src/SDKs/Monitor/Management.Monitor/Microsoft.Azure.Management.Monitor.csproj +++ b/src/SDKs/Monitor/Management.Monitor/Microsoft.Azure.Management.Monitor.csproj @@ -3,7 +3,7 @@ Microsoft Azure Monitor Library Microsoft.Azure.Management.Monitor - 0.18.0-preview + 0.18.1-preview Microsoft.Azure.Management.Monitor Management.Monitor;Management.Monitoring;metrics;alerts;autoscale;activityLogs;events;operations;logs See https://aka.ms/azure-sdk-for-net/monitor/changelog for release notes. diff --git a/src/SDKs/Monitor/Management.Monitor/Properties/AssemblyInfo.cs b/src/SDKs/Monitor/Management.Monitor/Properties/AssemblyInfo.cs index 36b561267e20..781376332d64 100644 --- a/src/SDKs/Monitor/Management.Monitor/Properties/AssemblyInfo.cs +++ b/src/SDKs/Monitor/Management.Monitor/Properties/AssemblyInfo.cs @@ -8,8 +8,8 @@ [assembly: AssemblyTitle("Microsoft Azure Monitor Library")] [assembly: AssemblyDescription("Provides Microsoft Azure Monitor operations.")] -[assembly: AssemblyVersion("0.18.0.0")] -[assembly: AssemblyFileVersion("0.18.0.0")] +[assembly: AssemblyVersion("0.18.1.0")] +[assembly: AssemblyFileVersion("0.18.1.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Microsoft Azure .NET SDK")] diff --git a/src/SDKs/Monitor/Monitor.Tests/Scenarios/MetricsTests.cs b/src/SDKs/Monitor/Monitor.Tests/Scenarios/MetricsTests.cs index 7cc762ef880d..60c11b79af9b 100644 --- a/src/SDKs/Monitor/Monitor.Tests/Scenarios/MetricsTests.cs +++ b/src/SDKs/Monitor/Monitor.Tests/Scenarios/MetricsTests.cs @@ -11,6 +11,8 @@ using Xunit; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; using System.Globalization; +using Microsoft.Rest.Azure.OData; +using System; namespace Monitor.Tests.Scenarios { @@ -18,6 +20,9 @@ public class MetricsTests : TestBase { private const string ResourceGroupName = "Rac46PostSwapRG"; private const string ResourceUriLegacy = "/subscriptions/{0}/resourceGroups/" + ResourceGroupName + "/providers/Microsoft.Web/sites/alertruleTest"; + + // 56bb45c9-5c14-4914-885e-c6fd6f130f7c (Demo – Azure Monitoring) For multi-dim metrics + private const string ResourceUri = "subscriptions/56bb45c9-5c14-4914-885e-c6fd6f130f7c/resourceGroups/contoso-data/providers/Microsoft.Storage/storageAccounts/contosodatadiag1"; private RecordedDelegatingHandler handler; public MetricsTests() @@ -46,7 +51,15 @@ public void GetMetricDefinitionsTest() Check(actualMetricDefinitions.ToList()); } - // ***** read definitions for multi-dim metrics here + // ***** read definitions for multi-dim metrics + actualMetricDefinitions = insightsClient.MetricDefinitions.ListAsync( + resourceUri: ResourceUri, + cancellationToken: new CancellationToken()).Result; + + if (!this.IsRecording) + { + Check(actualMetricDefinitions.ToList()); + } } } @@ -83,15 +96,52 @@ public void GetMetricsTest() Check(actualMetrics); } - // TODO: read multi-dim metrics here + // 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"; + ODataQuery filter = new ODataQuery("APIName eq 'GetBlobProperties'"); + + // Read data + actualMetrics = insightsClient.Metrics.List( + resourceUri: ResourceUri, + odataQuery: filter, + timespan: timeSpan, + interval: TimeSpan.FromMinutes(1), + metric: "Transactions", + aggregation: "Count", + resultType: ResultType.Data); + + if (!this.IsRecording) + { + Check(actualMetrics, true); + } + + // Read metadata + // NOTICE the change in the filter. If '*' is not there the backend returns BadRequest + filter = new ODataQuery("APIName eq '*'"); + actualMetrics = insightsClient.Metrics.List( + resourceUri: ResourceUri, + odataQuery: filter, + timespan: timeSpan, + interval: TimeSpan.FromMinutes(1), + metric: "Transactions", + aggregation: "Count", + resultType: ResultType.Metadata); + + if (!this.IsRecording) + { + CheckMetadata(actualMetrics); + } } } - private void Check(Response act) + private void Check(Response act, bool multiDim = false) { if (act != null) { + Assert.NotNull(act.Cost); Assert.NotNull(act.Timespan); + Assert.NotNull(act.Interval); Assert.NotNull(act.Value); if (act.Value.Count > 0) @@ -99,7 +149,48 @@ private void Check(Response act) var metric = act.Value[0]; Assert.False(string.IsNullOrWhiteSpace(metric.Id)); Assert.NotNull(metric.Name); - Assert.False(string.IsNullOrWhiteSpace(metric.Type)); + Assert.Equal(metric.Type, "Microsoft.Insights/metrics"); + + Assert.NotNull(metric.Timeseries); + if (metric.Timeseries.Count > 0) + { + var timeSeries = metric.Timeseries[0]; + Assert.NotNull(timeSeries.Metadatavalues); + Assert.True((multiDim && timeSeries.Metadatavalues.Count > 0) || (!multiDim && timeSeries.Metadatavalues.Count == 0)); + Assert.NotNull(timeSeries.Data); + } + } + } + else + { + Assert.Null(act); + } + } + + private void CheckMetadata(Response act) + { + if (act != null) + { + Assert.Null(act.Cost); + Assert.NotNull(act.Timespan); + Assert.Null(act.Interval); + Assert.NotNull(act.Value); + + if (act.Value.Count > 0) + { + var metric = act.Value[0]; + Assert.False(string.IsNullOrWhiteSpace(metric.Id)); + Assert.NotNull(metric.Name); + Assert.Equal(metric.Type, "Microsoft.Insights/metrics"); + + Assert.NotNull(metric.Timeseries); + if (metric.Timeseries.Count > 0) + { + var timeSeries = metric.Timeseries[0]; + Assert.NotNull(timeSeries.Metadatavalues); + Assert.NotEmpty(timeSeries.Metadatavalues); + Assert.Null(timeSeries.Data); + } } } else @@ -120,6 +211,12 @@ private static void Check(IList act) Assert.False(string.IsNullOrWhiteSpace(metricDef.Id)); Assert.NotNull(metricDef.Name); Assert.False(string.IsNullOrWhiteSpace(metricDef.ResourceId)); + + Assert.NotNull(metricDef.PrimaryAggregationType); + Assert.NotNull(metricDef.Unit); + Assert.NotNull(metricDef.MetricAvailabilities); + + // NOTE: Category is returned through the cable, but not deserialized! } } else 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 9ad5f281b89e..3b5d6d0c1725 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 @@ -7,16 +7,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1bdf0578-20e8-4a8d-b146-626e348cb122" + "135ed604-4bf1-4886-845d-16f082b6ac30" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.2053.0", + "FxVersion/4.7.2114.0", "OSName/WindowsServer2012R2Standard", "OSVersion/6.3.9600", - "Microsoft.Azure.Management.Monitor.MonitorClient/0.16.1.0" + "Microsoft.Azure.Management.Monitor.MonitorClient/0.18.1.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}", @@ -31,19 +31,19 @@ "Accept-Encoding" ], "__HandlingServerId__": [ - "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_3" + "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_6" ], "x-ms-request-id": [ - "{e9864d29-995a-4e0f-b9ce-1acbc5a477d1}" + "{4c6bf413-30e3-434e-99b5-af768ddcf5f8}" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14988" + "14996" ], "x-ms-correlation-request-id": [ - "e9864d29-995a-4e0f-b9ce-1acbc5a477d1" + "4c6bf413-30e3-434e-99b5-af768ddcf5f8" ], "x-ms-routing-request-id": [ - "WESTUS2:20170810T222145Z:e9864d29-995a-4e0f-b9ce-1acbc5a477d1" + "WESTUS:20171006T182023Z:4c6bf413-30e3-434e-99b5-af768ddcf5f8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -52,7 +52,70 @@ "no-cache" ], "Date": [ - "Thu, 10 Aug 2017 22:21:44 GMT" + "Fri, 06 Oct 2017 18:20:22 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "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=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7a67b0ed-109a-4f2c-9cd3-265e489af847" + ], + "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" + ] + }, + "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}", + "ResponseHeaders": { + "Content-Length": [ + "5219" + ], + "Content-Type": [ + "application/json" + ], + "Vary": [ + "Accept-Encoding" + ], + "__HandlingServerId__": [ + "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_8" + ], + "x-ms-request-id": [ + "{db5cbae3-5fb6-4724-ada7-455dd07a45a7}" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14931" + ], + "x-ms-correlation-request-id": [ + "db5cbae3-5fb6-4724-ada7-455dd07a45a7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20171006T182024Z:db5cbae3-5fb6-4724-ada7-455dd07a45a7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 06 Oct 2017 18:20:23 GMT" ], "Server": [ "Microsoft-IIS/8.5" 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 9b38c3fd0c90..cdb875e2e36a 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 @@ -7,19 +7,19 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1fb41c18-47dd-46a4-9c44-182512f7ec02" + "93094991-2973-43de-860b-f4c90fa64635" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.2053.0", + "FxVersion/4.7.2114.0", "OSName/WindowsServer2012R2Standard", "OSVersion/6.3.9600", - "Microsoft.Azure.Management.Monitor.MonitorClient/0.17.0.0" + "Microsoft.Azure.Management.Monitor.MonitorClient/0.18.1.0" ] }, - "ResponseBody": "{\r\n \"cost\": 0,\r\n \"timespan\": \"2017-08-10T22:19:35Z/2017-08-10T23:19:35Z\",\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-08-10T22:19:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:20:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:21:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:22:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:23:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:24:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:25:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:26:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:27:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:28:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:29:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:30:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:31:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:32:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:33:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:34:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:35:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:36:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:37:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:38:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:39:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:40:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:41:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:42:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:43:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:44:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:45:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:46:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:47:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:48:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:49:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:50:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:51:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:52:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:53:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:54:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:55:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:56:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:57:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:58:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T22:59:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:00:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:01:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:02:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:03:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:04:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:05:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:06:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:07:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:08:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:09:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:10:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:11:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:12:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:13:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:14:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:15:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:16:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:17:00Z\",\r\n \"total\": 0.0\r\n },\r\n {\r\n \"timeStamp\": \"2017-08-10T23:18: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\": \"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}", "ResponseHeaders": { "Content-Length": [ "3368" @@ -31,19 +31,19 @@ "Accept-Encoding" ], "__HandlingServerId__": [ - "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_6" + "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_13" ], "x-ms-request-id": [ - "{f682ef7a-4502-4b74-b785-0fef1c9e4322}" + "{1736e8c6-ff5c-40e9-bb45-fd855156ee6b}" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14993" + "14995" ], "x-ms-correlation-request-id": [ - "f682ef7a-4502-4b74-b785-0fef1c9e4322" + "1736e8c6-ff5c-40e9-bb45-fd855156ee6b" ], "x-ms-routing-request-id": [ - "WESTUS2:20170810T231935Z:f682ef7a-4502-4b74-b785-0fef1c9e4322" + "WESTUS2:20171006T181148Z:1736e8c6-ff5c-40e9-bb45-fd855156ee6b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -52,7 +52,7 @@ "no-cache" ], "Date": [ - "Thu, 10 Aug 2017 23:19:35 GMT" + "Fri, 06 Oct 2017 18:11:47 GMT" ], "Server": [ "Microsoft-IIS/8.5" @@ -70,16 +70,16 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8c1eb38e-1839-4d1b-8dc9-30d1d99b4d1a" + "a15e2b1f-a60b-4523-a68b-1d9488c6b5a0" ], "accept-language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.7.2053.0", + "FxVersion/4.7.2114.0", "OSName/WindowsServer2012R2Standard", "OSVersion/6.3.9600", - "Microsoft.Azure.Management.Monitor.MonitorClient/0.17.0.0" + "Microsoft.Azure.Management.Monitor.MonitorClient/0.18.1.0" ] }, "ResponseBody": "{\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Metadata path requires at least one dimension to be set\"\r\n}", @@ -91,19 +91,19 @@ "application/json" ], "__HandlingServerId__": [ - "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_6" + "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_11" ], "x-ms-request-id": [ - "{77fa485b-cede-4057-9de4-5160997f4583}" + "{c9190ca2-0be8-4060-ba33-14d866aa9e4e}" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14992" + "14994" ], "x-ms-correlation-request-id": [ - "77fa485b-cede-4057-9de4-5160997f4583" + "c9190ca2-0be8-4060-ba33-14d866aa9e4e" ], "x-ms-routing-request-id": [ - "WESTUS2:20170810T231935Z:77fa485b-cede-4057-9de4-5160997f4583" + "WESTUS2:20171006T181149Z:c9190ca2-0be8-4060-ba33-14d866aa9e4e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -112,7 +112,7 @@ "no-cache" ], "Date": [ - "Thu, 10 Aug 2017 23:19:35 GMT" + "Fri, 06 Oct 2017 18:11:48 GMT" ], "Server": [ "Microsoft-IIS/8.5" @@ -125,6 +125,132 @@ ] }, "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=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bde1ba74-bf18-45ad-ad8c-add908f5342f" + ], + "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" + ] + }, + "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}", + "ResponseHeaders": { + "Content-Length": [ + "1762" + ], + "Content-Type": [ + "application/json" + ], + "Vary": [ + "Accept-Encoding" + ], + "__HandlingServerId__": [ + "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_14" + ], + "x-ms-request-id": [ + "{d660068f-53c6-447f-be5c-2fe943995945}" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14916" + ], + "x-ms-correlation-request-id": [ + "d660068f-53c6-447f-be5c-2fe943995945" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171006T181153Z:d660068f-53c6-447f-be5c-2fe943995945" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 06 Oct 2017 18:11:52 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "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=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "64428079-6bc9-4db9-bc35-03283a45ab66" + ], + "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" + ] + }, + "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}", + "ResponseHeaders": { + "Content-Length": [ + "1851" + ], + "Content-Type": [ + "application/json" + ], + "Vary": [ + "Accept-Encoding" + ], + "__HandlingServerId__": [ + "shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_14" + ], + "x-ms-request-id": [ + "{e6686159-2eaf-4e3f-83f6-62ddf30620ba}" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14914" + ], + "x-ms-correlation-request-id": [ + "e6686159-2eaf-4e3f-83f6-62ddf30620ba" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171006T181221Z:e6686159-2eaf-4e3f-83f6-62ddf30620ba" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Fri, 06 Oct 2017 18:12:20 GMT" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 } ], "Names": {}, diff --git a/src/SDKs/_metadata/monitor_data-plane.txt b/src/SDKs/_metadata/monitor_data-plane.txt new file mode 100644 index 000000000000..7b851bf4c8c0 --- /dev/null +++ b/src/SDKs/_metadata/monitor_data-plane.txt @@ -0,0 +1,10 @@ +2017-09-22 22:25:47 UTC + +1) azure-rest-api-specs repository information +GitHub user: Azure +Branch: current +Commit: 772f496ee3a76238ae14ab84997f6aca45e5418b + +2) AutoRest information +Requested version: latest +Latest version: 1.2.2 diff --git a/src/SDKs/_metadata/monitor_resource-manager.txt b/src/SDKs/_metadata/monitor_resource-manager.txt new file mode 100644 index 000000000000..08dc99681442 --- /dev/null +++ b/src/SDKs/_metadata/monitor_resource-manager.txt @@ -0,0 +1,10 @@ +2017-09-22 22:24:37 UTC + +1) azure-rest-api-specs repository information +GitHub user: Azure +Branch: current +Commit: 772f496ee3a76238ae14ab84997f6aca45e5418b + +2) AutoRest information +Requested version: latest +Latest version: 1.2.2