From 5e338760a3dc807edbd5eb532670e594da1bd900 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Mon, 19 Mar 2018 14:35:10 -0700 Subject: [PATCH] Re-record Monitor tests --- .../test_mgmt_monitor.test_metrics.yaml | 71 ++++++++++--------- azure-mgmt-monitor/tests/test_mgmt_monitor.py | 2 +- 2 files changed, 39 insertions(+), 34 deletions(-) diff --git a/azure-mgmt-monitor/tests/recordings/test_mgmt_monitor.test_metrics.yaml b/azure-mgmt-monitor/tests/recordings/test_mgmt_monitor.test_metrics.yaml index 4fe9d27c8cb9..ac1a04464dd6 100644 --- a/azure-mgmt-monitor/tests/recordings/test_mgmt_monitor.test_metrics.yaml +++ b/azure-mgmt-monitor/tests/recordings/test_mgmt_monitor.test_metrics.yaml @@ -6,41 +6,43 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 monitormanagementclient/0.4.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 + msrest_azure/0.4.20 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricDefinitions?api-version=2017-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricDefinitions?api-version=2018-01-01 response: body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/Percentage - CPU","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","name":{"value":"Percentage - CPU","localizedValue":"Percentage CPU"},"isDimensionRequired":false,"unit":"Percent","primaryAggregationType":"Average","metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/Network - In","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","name":{"value":"Network - In","localizedValue":"Network In"},"isDimensionRequired":false,"unit":"Bytes","primaryAggregationType":"Total","metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/Network - Out","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","name":{"value":"Network - Out","localizedValue":"Network Out"},"isDimensionRequired":false,"unit":"Bytes","primaryAggregationType":"Total","metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/Disk - Read Bytes","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","name":{"value":"Disk - Read Bytes","localizedValue":"Disk Read Bytes"},"isDimensionRequired":false,"unit":"Bytes","primaryAggregationType":"Total","metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/Disk - Write Bytes","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","name":{"value":"Disk - Write Bytes","localizedValue":"Disk Write Bytes"},"isDimensionRequired":false,"unit":"Bytes","primaryAggregationType":"Total","metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/Disk - Read Operations/Sec","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","name":{"value":"Disk - Read Operations/Sec","localizedValue":"Disk Read Operations/Sec"},"isDimensionRequired":false,"unit":"CountPerSecond","primaryAggregationType":"Average","metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/Disk - Write Operations/Sec","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","name":{"value":"Disk - Write Operations/Sec","localizedValue":"Disk Write Operations/Sec"},"isDimensionRequired":false,"unit":"CountPerSecond","primaryAggregationType":"Average","metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/CPU - Credits Remaining","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","name":{"value":"CPU - Credits Remaining","localizedValue":"CPU Credits Remaining"},"isDimensionRequired":false,"unit":"Count","primaryAggregationType":"Average","metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/CPU - Credits Consumed","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","name":{"value":"CPU - Credits Consumed","localizedValue":"CPU Credits Consumed"},"isDimensionRequired":false,"unit":"Count","primaryAggregationType":"Average","metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"}]}]}'} + CPU","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","namespace":"Microsoft.Compute/virtualMachines","name":{"value":"Percentage + CPU","localizedValue":"Percentage CPU"},"isDimensionRequired":false,"unit":"Percent","primaryAggregationType":"Average","supportedAggregationTypes":["None","Average","Minimum","Maximum","Total","Count"],"metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT5M","retention":"P93D"},{"timeGrain":"PT15M","retention":"P93D"},{"timeGrain":"PT30M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"},{"timeGrain":"PT6H","retention":"P93D"},{"timeGrain":"PT12H","retention":"P93D"},{"timeGrain":"P1D","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/Network + In","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","namespace":"Microsoft.Compute/virtualMachines","name":{"value":"Network + In","localizedValue":"Network In"},"isDimensionRequired":false,"unit":"Bytes","primaryAggregationType":"Total","supportedAggregationTypes":["None","Average","Minimum","Maximum","Total","Count"],"metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT5M","retention":"P93D"},{"timeGrain":"PT15M","retention":"P93D"},{"timeGrain":"PT30M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"},{"timeGrain":"PT6H","retention":"P93D"},{"timeGrain":"PT12H","retention":"P93D"},{"timeGrain":"P1D","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/Network + Out","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","namespace":"Microsoft.Compute/virtualMachines","name":{"value":"Network + Out","localizedValue":"Network Out"},"isDimensionRequired":false,"unit":"Bytes","primaryAggregationType":"Total","supportedAggregationTypes":["None","Average","Minimum","Maximum","Total","Count"],"metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT5M","retention":"P93D"},{"timeGrain":"PT15M","retention":"P93D"},{"timeGrain":"PT30M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"},{"timeGrain":"PT6H","retention":"P93D"},{"timeGrain":"PT12H","retention":"P93D"},{"timeGrain":"P1D","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/Disk + Read Bytes","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","namespace":"Microsoft.Compute/virtualMachines","name":{"value":"Disk + Read Bytes","localizedValue":"Disk Read Bytes"},"isDimensionRequired":false,"unit":"Bytes","primaryAggregationType":"Total","supportedAggregationTypes":["None","Average","Minimum","Maximum","Total","Count"],"metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT5M","retention":"P93D"},{"timeGrain":"PT15M","retention":"P93D"},{"timeGrain":"PT30M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"},{"timeGrain":"PT6H","retention":"P93D"},{"timeGrain":"PT12H","retention":"P93D"},{"timeGrain":"P1D","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/Disk + Write Bytes","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","namespace":"Microsoft.Compute/virtualMachines","name":{"value":"Disk + Write Bytes","localizedValue":"Disk Write Bytes"},"isDimensionRequired":false,"unit":"Bytes","primaryAggregationType":"Total","supportedAggregationTypes":["None","Average","Minimum","Maximum","Total","Count"],"metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT5M","retention":"P93D"},{"timeGrain":"PT15M","retention":"P93D"},{"timeGrain":"PT30M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"},{"timeGrain":"PT6H","retention":"P93D"},{"timeGrain":"PT12H","retention":"P93D"},{"timeGrain":"P1D","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/Disk + Read Operations/Sec","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","namespace":"Microsoft.Compute/virtualMachines","name":{"value":"Disk + Read Operations/Sec","localizedValue":"Disk Read Operations/Sec"},"isDimensionRequired":false,"unit":"CountPerSecond","primaryAggregationType":"Average","supportedAggregationTypes":["None","Average","Minimum","Maximum","Total","Count"],"metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT5M","retention":"P93D"},{"timeGrain":"PT15M","retention":"P93D"},{"timeGrain":"PT30M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"},{"timeGrain":"PT6H","retention":"P93D"},{"timeGrain":"PT12H","retention":"P93D"},{"timeGrain":"P1D","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/Disk + Write Operations/Sec","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","namespace":"Microsoft.Compute/virtualMachines","name":{"value":"Disk + Write Operations/Sec","localizedValue":"Disk Write Operations/Sec"},"isDimensionRequired":false,"unit":"CountPerSecond","primaryAggregationType":"Average","supportedAggregationTypes":["None","Average","Minimum","Maximum","Total","Count"],"metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT5M","retention":"P93D"},{"timeGrain":"PT15M","retention":"P93D"},{"timeGrain":"PT30M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"},{"timeGrain":"PT6H","retention":"P93D"},{"timeGrain":"PT12H","retention":"P93D"},{"timeGrain":"P1D","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/CPU + Credits Remaining","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","namespace":"Microsoft.Compute/virtualMachines","name":{"value":"CPU + Credits Remaining","localizedValue":"CPU Credits Remaining"},"isDimensionRequired":false,"unit":"Count","primaryAggregationType":"Average","supportedAggregationTypes":["None","Average","Minimum","Maximum","Total","Count"],"metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT5M","retention":"P93D"},{"timeGrain":"PT15M","retention":"P93D"},{"timeGrain":"PT30M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"},{"timeGrain":"PT6H","retention":"P93D"},{"timeGrain":"PT12H","retention":"P93D"},{"timeGrain":"P1D","retention":"P93D"}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metricdefinitions/CPU + Credits Consumed","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632","namespace":"Microsoft.Compute/virtualMachines","name":{"value":"CPU + Credits Consumed","localizedValue":"CPU Credits Consumed"},"isDimensionRequired":false,"unit":"Count","primaryAggregationType":"Average","supportedAggregationTypes":["None","Average","Minimum","Maximum","Total","Count"],"metricAvailabilities":[{"timeGrain":"PT1M","retention":"P93D"},{"timeGrain":"PT5M","retention":"P93D"},{"timeGrain":"PT15M","retention":"P93D"},{"timeGrain":"PT30M","retention":"P93D"},{"timeGrain":"PT1H","retention":"P93D"},{"timeGrain":"PT6H","retention":"P93D"},{"timeGrain":"PT12H","retention":"P93D"},{"timeGrain":"P1D","retention":"P93D"}]}]}'} headers: - __handlingserverid__: [shoeboxproxyprod_shoeboxproxyprod-red_MetricsMP_IN_11] + __handlingserverid__: [shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_1] cache-control: [no-cache] - content-length: ['5468'] + content-length: ['8825'] content-type: [application/json] - date: ['Mon, 23 Oct 2017 21:39:43 GMT'] + date: ['Mon, 19 Mar 2018 21:26:25 GMT'] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: ['Accept-Encoding,Accept-Encoding'] + x-aspnet-version: [4.0.30319] + x-content-type-options: [nosniff] x-powered-by: [ASP.NET] status: {code: 200, message: OK} - request: @@ -50,24 +52,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.16299-SP0) requests/2.17.3 msrest/0.4.11 - msrest_azure/0.4.11 monitormanagementclient/0.4.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.26 + msrest_azure/0.4.20 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metrics?timespan=2017-10-22%2F2017-10-23&metric=Percentage%20CPU&aggregation=Total&api-version=2017-05-01-preview&interval=PT1H + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/microsoft.insights/metrics?timespan=2018-03-17%2F2018-03-18&interval=PT1H&aggregation=Total&api-version=2018-01-01 response: - body: {string: '{"cost":0,"timespan":"2017-10-22T00:00:00Z/2017-10-23T00:00:00Z","interval":"PT1H","value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/Microsoft.Insights/metrics/Percentage + body: {string: '{"cost":0,"timespan":"2018-03-17T00:00:00Z/2018-03-18T00:00:00Z","interval":"PT1H","value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azvmc632/providers/Microsoft.Compute/virtualMachines/azvmc632/providers/Microsoft.Insights/metrics/Percentage CPU","type":"Microsoft.Insights/metrics","name":{"value":"Percentage CPU","localizedValue":"Percentage - CPU"},"unit":"Percent","timeseries":[{"metadatavalues":[],"data":[{"timeStamp":"2017-10-22T00:00:00Z","total":57.290000000000006},{"timeStamp":"2017-10-22T01:00:00Z","total":59.339999999999996},{"timeStamp":"2017-10-22T02:00:00Z","total":58.43},{"timeStamp":"2017-10-22T03:00:00Z","total":98.329999999999956},{"timeStamp":"2017-10-22T04:00:00Z","total":66.79},{"timeStamp":"2017-10-22T05:00:00Z","total":68.859999999999985},{"timeStamp":"2017-10-22T06:00:00Z","total":126.61999999999999},{"timeStamp":"2017-10-22T07:00:00Z","total":131.33000000000007},{"timeStamp":"2017-10-22T08:00:00Z","total":58.01},{"timeStamp":"2017-10-22T09:00:00Z","total":68.04},{"timeStamp":"2017-10-22T10:00:00Z","total":84.659999999999982},{"timeStamp":"2017-10-22T11:00:00Z","total":98.449999999999989},{"timeStamp":"2017-10-22T12:00:00Z","total":100.99999999999994},{"timeStamp":"2017-10-22T13:00:00Z","total":115.09000000000002},{"timeStamp":"2017-10-22T14:00:00Z","total":122.99999999999999},{"timeStamp":"2017-10-22T15:00:00Z","total":114.44999999999999},{"timeStamp":"2017-10-22T16:00:00Z","total":107.05},{"timeStamp":"2017-10-22T17:00:00Z","total":104.34},{"timeStamp":"2017-10-22T18:00:00Z","total":60.229999999999983},{"timeStamp":"2017-10-22T19:00:00Z","total":69.700000000000017},{"timeStamp":"2017-10-22T20:00:00Z","total":79.639999999999986},{"timeStamp":"2017-10-22T21:00:00Z","total":48.460000000000008},{"timeStamp":"2017-10-22T22:00:00Z","total":51.980000000000004},{"timeStamp":"2017-10-22T23:00:00Z","total":56.930000000000021}]}]}]}'} + CPU"},"unit":"Percent","timeseries":[{"metadatavalues":[],"data":[{"timeStamp":"2018-03-17T00:00:00Z","total":47.450000000000017},{"timeStamp":"2018-03-17T01:00:00Z","total":45.22999999999999},{"timeStamp":"2018-03-17T02:00:00Z","total":45.729999999999968},{"timeStamp":"2018-03-17T03:00:00Z","total":49.559999999999995},{"timeStamp":"2018-03-17T04:00:00Z","total":52.159999999999989},{"timeStamp":"2018-03-17T05:00:00Z","total":47.0},{"timeStamp":"2018-03-17T06:00:00Z","total":49.250000000000007},{"timeStamp":"2018-03-17T07:00:00Z","total":47.02999999999998},{"timeStamp":"2018-03-17T08:00:00Z","total":49.09999999999998},{"timeStamp":"2018-03-17T09:00:00Z","total":87.220000000000027},{"timeStamp":"2018-03-17T10:00:00Z","total":48.249999999999993},{"timeStamp":"2018-03-17T11:00:00Z","total":51.909999999999961},{"timeStamp":"2018-03-17T12:00:00Z","total":49.739999999999981},{"timeStamp":"2018-03-17T13:00:00Z","total":49.779999999999994},{"timeStamp":"2018-03-17T14:00:00Z","total":49.75},{"timeStamp":"2018-03-17T15:00:00Z","total":113.83},{"timeStamp":"2018-03-17T16:00:00Z","total":51.77999999999998},{"timeStamp":"2018-03-17T17:00:00Z","total":50.870000000000005},{"timeStamp":"2018-03-17T18:00:00Z","total":49.949999999999974},{"timeStamp":"2018-03-17T19:00:00Z","total":49.329999999999991},{"timeStamp":"2018-03-17T20:00:00Z","total":49.16},{"timeStamp":"2018-03-17T21:00:00Z","total":50.879999999999981},{"timeStamp":"2018-03-17T22:00:00Z","total":50.1},{"timeStamp":"2018-03-17T23:00:00Z","total":59.100000000000016}]}]}],"namespace":"Microsoft.Compute/virtualMachines","resourceregion":"eastus"}'} headers: - __handlingserverid__: [shoeboxproxyprod_shoeboxproxyprod-red_MetricsMP_IN_9] + __handlingserverid__: [shoeboxproxyprod_shoeboxproxyprod-black_MetricsMP_IN_11] cache-control: [no-cache] - content-length: ['1910'] + content-length: ['1990'] content-type: [application/json] - date: ['Mon, 23 Oct 2017 21:39:55 GMT'] + date: ['Mon, 19 Mar 2018 21:26:26 GMT'] server: [Microsoft-IIS/8.5] strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] + transfer-encoding: [chunked] + vary: ['Accept-Encoding,Accept-Encoding'] + x-aspnet-version: [4.0.30319] + x-content-type-options: [nosniff] x-powered-by: [ASP.NET] status: {code: 200, message: OK} version: 1 diff --git a/azure-mgmt-monitor/tests/test_mgmt_monitor.py b/azure-mgmt-monitor/tests/test_mgmt_monitor.py index 95efc621d1fc..a97b7cb8e749 100644 --- a/azure-mgmt-monitor/tests/test_mgmt_monitor.py +++ b/azure-mgmt-monitor/tests/test_mgmt_monitor.py @@ -82,7 +82,7 @@ def test_metrics(self): ) # Need to freeze the date for the recorded tests - today = datetime.date(2017, 10, 23) + today = datetime.date(2018, 3, 18) yesterday = today - datetime.timedelta(days=1) metrics = self.client.metrics.list(