Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
10e48c1
Fix swagger correctness issues with 2017-05-01-preview metricdefinitions
ToddKingMSFT Apr 17, 2021
971cea8
Fix swagger correctness issues with 2017-05-01-preview metrics API
ToddKingMSFT Apr 17, 2021
7267387
Fix swagger correctness issues with 2017-12-01-preview metricNamespac…
ToddKingMSFT Apr 17, 2021
ef46ff7
Update 2017-12-01-preview metricNamespaces example
ToddKingMSFT Apr 17, 2021
4682c6a
Fix swagger correctness issues with 2016-09-01 metricDefinitions API
ToddKingMSFT Apr 17, 2021
6e77801
Fix swagger correctness issues with 2016-09-01 metrics API
ToddKingMSFT Apr 17, 2021
bad590a
Add additional 2018-01-01 metricDefinitions API example
ToddKingMSFT Apr 17, 2021
5f2a94e
Fix swagger correctness issues with 2018-01-01 metricDefinitions API
ToddKingMSFT Apr 17, 2021
33341e6
Fix swagger correctness issues with 2018-01-01 metrics API
ToddKingMSFT Apr 17, 2021
1ef8a24
Remove extra forward slash from 2016-03-01 metricDefinitions example
ToddKingMSFT Apr 17, 2021
66620e0
Remove extra forward slash from 2016-03-01 metricDefinitions filtered…
ToddKingMSFT Apr 17, 2021
a4bebf4
Remove forward slash from 2016-09-01 metrics example
ToddKingMSFT Apr 17, 2021
48c5f52
Remove forward slash from 2016-09-01 metrics filtered example
ToddKingMSFT Apr 17, 2021
accf974
Update 2017-05-01-preview example with current values
ToddKingMSFT Apr 17, 2021
cfa94e7
Update 2017-05-01-preview metric metadata example
ToddKingMSFT Apr 19, 2021
4252607
Remove isMetadataCustom property from example
ToddKingMSFT Apr 19, 2021
c3646fc
Clarified some comments in 2018-01-01 metrics API
ToddKingMSFT Apr 19, 2021
fcd2d8a
Fix example in 2018-01-01 metrics metadata API
ToddKingMSFT Apr 19, 2021
416bdae
Fix example and comments in 2017-05-01-preview metrics API
ToddKingMSFT Apr 19, 2021
dc1b96e
Update 2017-05-01-preview get metric metradata example
ToddKingMSFT Apr 19, 2021
1a3fbfb
Fix formatting issues with 2017-05-01-preview metrics API
ToddKingMSFT Apr 20, 2021
ee381e6
Fix formatting issues with 2017-12-01-preview metricNamespaces API
ToddKingMSFT Apr 20, 2021
23649e0
Fix formatting issues with 2018-01-01 metrics API
ToddKingMSFT Apr 20, 2021
869d719
Add displayDescription to 2018-01-01 metrics API example
ToddKingMSFT Apr 20, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,31 +1,75 @@
{
"parameters": {
"resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default",
"timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z",
"resourceUri": "d69f0a10-6508-4026-98b0-eff8f6faaade/resourceGroups/quickpulse-int/providers/Microsoft.Storage/storageAccounts/quickpulseintusscdiag/blobServices/default",
"timespan": "2021-04-16T01:00:00.000Z/2021-04-17T02:00:00.000Z",
"metric": "BlobCapacity",
"$filter": "BlobType eq '*'",
"top": "3",
"orderby": "Average asc",
"aggregation": "Average,count",
"interval": "PT1M",
"orderby": "Average desc",
"aggregation": "average,minimum,maximum",
"interval": "PT6H",
"api-version": "2017-05-01-preview"
},
"responses": {
"200": {
"body": {
"cost": 0,
"timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z",
"interval": "PT1M",
"cost": 1499,
"timespan": "2021-04-16T01:00:00Z/2021-04-17T02:00:00Z",
"interval": "PT6H",
"value": [
{
"id": "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity",
"id": "/subscriptions/d69f0a10-6508-4026-98b0-eff8f6faaade/resourceGroups/quickpulse-int/providers/Microsoft.Storage/storageAccounts/quickpulseintusscdiag/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity",
"type": "Microsoft.Insights/metrics",
"name": {
"value": "BlobCapacity",
"localizedValue": "Blob Capacity"
},
"displayDescription": "The amount of storage used by the storage account’s Blob service in bytes.",
"unit": "Bytes",
"timeseries": [
{
"metadatavalues": [
{
"name": {
"value": "blobtype",
"localizedValue": "blobtype"
},
"value": "BlockBlob"
}
],
"data": [
{
"timeStamp": "2021-04-16T01:00:00Z",
"average": 35492299169.0,
"minimum": 35492299169.0,
"maximum": 35492299169.0
},
{
"timeStamp": "2021-04-16T07:00:00Z",
"average": 35492299169.0,
"minimum": 35492299169.0,
"maximum": 35492299169.0
},
{
"timeStamp": "2021-04-16T13:00:00Z",
"average": 35492299169.0,
"minimum": 35492299169.0,
"maximum": 35492299169.0
},
{
"timeStamp": "2021-04-16T19:00:00Z",
"average": 35492299169.0,
"minimum": 35492299169.0,
"maximum": 35492299169.0
},
{
"timeStamp": "2021-04-17T01:00:00Z",
"average": 35492299169.0,
"minimum": 35492299169.0,
"maximum": 35492299169.0
}
]
},
{
"metadatavalues": [
{
Expand All @@ -38,21 +82,34 @@
],
"data": [
{
"timeStamp": "2017-04-14T02:20:00Z",
"count": 0.0
"timeStamp": "2021-04-16T01:00:00Z",
"average": 0.0,
"minimum": 0.0,
"maximum": 0.0
},
{
"timeStamp": "2021-04-16T07:00:00Z",
"average": 0.0,
"minimum": 0.0,
"maximum": 0.0
},
{
"timeStamp": "2017-04-14T02:21:00Z",
"count": 0.0
"timeStamp": "2021-04-16T13:00:00Z",
"average": 0.0,
"minimum": 0.0,
"maximum": 0.0
},
{
"timeStamp": "2017-04-14T02:22:00Z",
"count": 0.0
"timeStamp": "2021-04-16T19:00:00Z",
"average": 0.0,
"minimum": 0.0,
"maximum": 0.0
},
{
"timeStamp": "2017-04-14T02:23:00Z",
"count": 1.0,
"average": 0.0
"timeStamp": "2021-04-17T01:00:00Z",
"average": 0.0,
"minimum": 0.0,
"maximum": 0.0
}
]
},
Expand All @@ -63,30 +120,44 @@
"value": "blobtype",
"localizedValue": "blobtype"
},
"value": "BlockBlob"
"value": "Azure Data Lake Storage"
}
],
"data": [
{
"timeStamp": "2017-04-14T02:20:00Z",
"count": 0.0
"timeStamp": "2021-04-16T01:00:00Z",
"average": 0.0,
"minimum": 0.0,
"maximum": 0.0
},
{
"timeStamp": "2021-04-16T07:00:00Z",
"average": 0.0,
"minimum": 0.0,
"maximum": 0.0
},
{
"timeStamp": "2017-04-14T02:21:00Z",
"count": 0.0
"timeStamp": "2021-04-16T13:00:00Z",
"average": 0.0,
"minimum": 0.0,
"maximum": 0.0
},
{
"timeStamp": "2017-04-14T02:22:00Z",
"count": 0.0
"timeStamp": "2021-04-16T19:00:00Z",
"average": 0.0,
"minimum": 0.0,
"maximum": 0.0
},
{
"timeStamp": "2017-04-14T02:23:00Z",
"count": 1.0,
"average": 245.0
"timeStamp": "2021-04-17T01:00:00Z",
"average": 0.0,
"minimum": 0.0,
"maximum": 0.0
}
]
}
]
],
"errorCode": "Success"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
{
"parameters": {
"timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z",
"metric": "BlobCapacity",
"timespan": "2021-04-18T22:14:26.647Z/2021-04-19T22:14:26.647Z",
"metric": "BlobCount",
"$filter": "BlobType eq '*'",
"top": "3",
"orderby": "Average asc",
"aggregation": "Average,count",
"interval": "PT1M",
"resulttype": "metadata",
"resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default",
"resourceUri": "subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/blobServices/default",
"api-version": "2017-05-01-preview"
},
"responses": {
"200": {
"body": {
"timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z",
"timespan": "2021-04-18T22:14:26Z/2021-04-19T22:14:26Z",
"interval": "PT1H",
"value": [
{
"id": "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity",
"id": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/blobServices/default/providers/Microsoft.Insights/metrics/BlobCount",
"type": "Microsoft.Insights/metrics",
"name": {
"value": "BlobCapacity",
"localizedValue": "Blob Capacity"
"value": "BlobCount",
"localizedValue": "Blob Count"
},
"unit": "Bytes",
"displayDescription": "The number of blob objects stored in the storage account.",
"unit": "Count",
"timeseries": [
{
"metadatavalues": [
Expand All @@ -46,6 +44,17 @@
"value": "PageBlob"
}
]
},
{
"metadatavalues": [
{
"name": {
"value": "blobtype",
"localizedValue": "blobtype"
},
"value": "Azure Data Lake Storage"
}
]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
},
"Unit": {
"type": "string",
"description": "the unit of the metric.",
"description": "The unit of the metric.",
"enum": [
"Count",
"Bytes",
Expand All @@ -207,7 +207,11 @@
"Percent",
"MilliSeconds",
"ByteSeconds",
"Unspecified"
"Unspecified",
"Cores",
"MilliCores",
"NanoCores",
"BitsPerSecond"
],
"x-ms-enum": {
"name": "Unit",
Expand All @@ -228,6 +232,14 @@
"$ref": "#/definitions/LocalizableString",
"description": "the name and the display name of the metric, i.e. it is a localizable string."
},
"displayDescription": {
"type": "string",
"description": "Detailed description of this metric."
},
"category": {
"type": "string",
"description": "Custom category name for this metric."
},
"unit": {
"$ref": "#/definitions/Unit",
"description": "the unit of the metric."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"value": "CpuTime",
"localizedValue": "CPU Time"
},
"displayDescription": "CPU Time",
"unit": "Seconds",
"timeseries": [
{
Expand Down Expand Up @@ -177,7 +178,7 @@
},
"Unit": {
"type": "string",
"description": "the unit of the metric.",
"description": "The unit of the metric.",
"enum": [
"Count",
"Bytes",
Expand All @@ -187,7 +188,11 @@
"Percent",
"MilliSeconds",
"ByteSeconds",
"Unspecified"
"Unspecified",
"Cores",
"MilliCores",
"NanoCores",
"BitsPerSecond"
],
"x-ms-enum": {
"name": "Unit",
Expand Down Expand Up @@ -266,7 +271,7 @@
"type": "number",
"format": "int32",
"minimum": 0,
"description": "The integer value representing the cost of the query, for data case."
"description": "The integer value representing the relative cost of the query."
},
"timespan": {
"type": "string",
Expand Down Expand Up @@ -306,6 +311,14 @@
"$ref": "#/definitions/LocalizableString",
"description": "the name and the display name of the metric, i.e. it is localizable string."
},
"displayDescription": {
"type": "string",
"description": "Detailed description of this metric."
},
"errorCode": {
"type": "string",
"description": "'Success' or the error details on query failures for this metric."
},
"unit": {
"$ref": "#/definitions/Unit",
"description": "the unit of the metric."
Expand All @@ -322,6 +335,7 @@
"id",
"type",
"name",
"displayDescription",
"unit",
"timeseries"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
{
"parameters": {
"resourceUri": "subscriptions/a252e87d-ec06-45b1-8901-57e613be91b0/resourceGroups/larrytest/providers/Microsoft.DocumentDB/databaseAccounts/larrytestdocdb",
"startTime": "2018-08-31T15:53:00Z",
"resourceUri": "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill",
"startTime": "2020-08-31T15:53:00Z",
"api-version": "2017-12-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/a252e87d-ec06-45b1-8901-57e613be91b0/resourceGroups/larrytest/providers/Microsoft.DocumentDB/databaseAccounts/larrytestdocdb/providers/microsoft.insights/metricNamespaces/Microsoft.DocumentDB-databaseAccounts",
"name": "Microsoft.DocumentDB-databaseAccounts",
"id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricNamespaces/Azure.ApplicationInsights",
"name": "Azure.ApplicationInsights",
"type": "Microsoft.Insights/metricNamespaces",
"classification": "Custom",
"properties": {
"metricNamespaceName": "Microsoft.DocumentDB/databaseAccounts"
"metricNamespaceName": "Azure.ApplicationInsights"
}
},
{
"id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricNamespaces/microsoft.insights-components",
"name": "microsoft.insights-components",
"type": "Microsoft.Insights/metricNamespaces",
"classification": "Platform",
"properties": {
"metricNamespaceName": "microsoft.insights/components"
}
}
]
Expand Down
Loading