Metrics Batch - Batch
Elenca i valori delle metriche per più risorse.
POST {endpoint}/subscriptions/{subscriptionId}/metrics:getBatch?metricnamespace={metricnamespace}&metricnames={metricnames}&api-version=2023-10-01
POST {endpoint}/subscriptions/{subscriptionId}/metrics:getBatch?starttime={starttime}&endtime={endtime}&interval={interval}&metricnamespace={metricnamespace}&metricnames={metricnames}&aggregation={aggregation}&top={top}&orderby={orderby}&filter={filter}&rollupby={rollupby}&api-version=2023-10-01
Parametri dell'URI
Nome | In | Necessario | Tipo | Descrizione |
---|---|---|---|---|
endpoint
|
path | True |
string (url) |
Endpoint a livello di area da usare, ad esempio https://eastus.metrics.monitor.azure.com. L'area deve corrispondere all'area delle risorse richieste. Per le risorse globali, l'area deve essere "globale". |
subscription
|
path | True |
string (uuid) |
Identificatore della sottoscrizione per le risorse in questo batch. |
api-version
|
query | True |
string |
Versione dell'API client. |
metricnames
|
query | True |
string[] |
Nomi delle metriche (delimitate da virgole) da recuperare. |
metricnamespace
|
query | True |
string |
Spazio dei nomi della metrica che contiene i nomi delle metriche richieste. |
aggregation
|
query |
string |
Elenco di tipi di aggregazione (delimitati da virgole) da recuperare. esempi : media, minima, massima |
|
endtime
|
query |
string |
Ora di fine della query. È una stringa nel formato 'yyyyy-MM-ddTHH:mm:ss.fffZ'. |
|
filter
|
query |
string |
Il filtro viene usato per ridurre il set di dati delle metriche restituiti. |
|
interval
|
query |
string |
Intervallo (ad esempio timegrain) della query nel formato di durata ISO 8601. Il valore predefinito è PT1M. Caso speciale per il valore 'FULL' che restituisce un singolo punto dati per l'intero intervallo di tempo richiesto. esempi di : PT15M, PT1H, P1D, FULL |
|
orderby
|
query |
string |
Aggregazione da utilizzare per l'ordinamento dei risultati e la direzione dell'ordinamento. È possibile specificare un solo ordine. esempi di : somma asc |
|
rollupby
|
query |
string |
Nomi delle dimensioni per cui eseguire il rollup dei risultati. Ad esempio, se si vogliono visualizzare solo i valori delle metriche con un filtro come "City eq Seattle o City eq Tacoma", ma non si vogliono visualizzare valori separati per ogni città, è possibile specificare "RollUpBy=City" per visualizzare i risultati per Seattle e Tacoma distribuiti in un'unica occorrenza. |
|
starttime
|
query |
string |
Ora di inizio della query. È una stringa nel formato 'yyyyy-MM-ddTHH:mm:ss.fffZ'. Se è stato specificato il parametro endtime, questo parametro è obbligatorio. Se si specifica solo l'ora di inizio, l'ora di fine viene predefinita per l'ora corrente. Se non viene specificato alcun intervallo di tempo, il valore predefinito è 1 ora. |
|
top
|
query |
integer (int32) |
Numero massimo di record da recuperare per ID risorsa nella richiesta. Valido solo se viene specificato il filtro. Il valore predefinito è 10. |
Corpo della richiesta
Nome | Tipo | Descrizione |
---|---|---|
resourceids |
string[] (arm-id) |
Elenco di ID risorsa per cui eseguire query sulle metriche. |
Risposte
Nome | Tipo | Descrizione |
---|---|---|
200 OK |
Risposta a una query sulle metriche. |
|
Other Status Codes |
Descrive il formato della risposta di errore. Intestazioni x-ms-error-code: string |
Sicurezza
AADToken
Autenticazione OAuth2 di Azure Active Directory
Tipo:
oauth2
Flow:
application
URL token:
https://login.microsoftonline.com/common/oauth2/v2.0/token
Ambiti
Nome | Descrizione |
---|---|
https://metrics.monitor.azure.com/.default | https://metrics.monitor.azure.com/.default |
Esempio
Query Redis Metrics summary |
Query Storage Metrics |
Query Redis Metrics summary
Esempio di richiesta
POST {endpoint}/subscriptions/12345678-abcd-1234-abcd-123456789abc/metrics:getBatch?starttime=2023-11-07T14:00:00.000Z&endtime=2023-11-07T18:00:00.000Z&interval=FULL&metricnamespace=Microsoft.Cache/Redis&metricnames=cacheWrite&aggregation=average&top=10&orderby=average desc&filter=ShardId eq '0'&rollupby=ShardId&api-version=2023-10-01
{
"resourceids": [
"/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/test_redis/providers/Microsoft.Cache/Redis/redis5",
"/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/test_redis/providers/Microsoft.Cache/Redis/redis3",
"/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/test_redis/providers/Microsoft.Cache/Redis/redis2"
]
}
Risposta di esempio
{
"values": [
{
"starttime": "2023-11-07T14:00:00Z",
"endtime": "2023-11-07T18:00:00Z",
"interval": "PT4H",
"value": [
{
"id": "/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/test_redis/providers/Microsoft.Cache/Redis/redis5/providers/Microsoft.Insights/metrics/cacheWrite",
"type": "Microsoft.Insights/metrics",
"name": {
"value": "cacheWrite",
"localizedValue": "Cache Write"
},
"displayDescription": "The amount of data written to the cache in bytes per second. For more details, see https://aka.ms/redis/metrics.",
"unit": "BytesPerSecond",
"timeseries": [
{
"metadatavalues": [],
"data": [
{
"timeStamp": "2023-11-07T14:00:00Z",
"average": 35513.760416666664
}
]
}
],
"errorCode": "Success"
}
],
"namespace": "microsoft.cache/redis",
"resourceregion": "westus2",
"resourceid": "/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/test_redis/providers/Microsoft.Cache/Redis/redis5"
},
{
"starttime": "2023-11-07T14:00:00Z",
"endtime": "2023-11-07T18:00:00Z",
"interval": "PT4H",
"value": [
{
"id": "/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/test_redis/providers/Microsoft.Cache/Redis/redis3/providers/Microsoft.Insights/metrics/cacheWrite",
"type": "Microsoft.Insights/metrics",
"name": {
"value": "cacheWrite",
"localizedValue": "Cache Write"
},
"displayDescription": "The amount of data written to the cache in bytes per second. For more details, see https://aka.ms/redis/metrics.",
"unit": "BytesPerSecond",
"timeseries": [
{
"metadatavalues": [],
"data": [
{
"timeStamp": "2023-11-07T14:00:00Z",
"average": 7135.0625
}
]
}
],
"errorCode": "Success"
}
],
"namespace": "microsoft.cache/redis",
"resourceregion": "westus2",
"resourceid": "/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/test_redis/providers/Microsoft.Cache/Redis/redis3"
},
{
"starttime": "2023-11-07T14:00:00Z",
"endtime": "2023-11-07T18:00:00Z",
"interval": "PT4H",
"value": [
{
"id": "/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/test_redis/providers/Microsoft.Cache/Redis/redis2/providers/Microsoft.Insights/metrics/cacheWrite",
"type": "Microsoft.Insights/metrics",
"name": {
"value": "cacheWrite",
"localizedValue": "Cache Write"
},
"displayDescription": "The amount of data written to the cache in bytes per second. For more details, see https://aka.ms/redis/metrics.",
"unit": "BytesPerSecond",
"timeseries": [
{
"metadatavalues": [],
"data": [
{
"timeStamp": "2023-11-07T14:00:00Z",
"average": 6723.489583333333
}
]
}
],
"errorCode": "Success"
}
],
"namespace": "microsoft.cache/redis",
"resourceregion": "westus2",
"resourceid": "/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/test_redis/providers/Microsoft.Cache/Redis/redis2"
}
]
}
x-ms-error-code: BadRequest
{
"error": {
"additionalInfo": [
{
"type": "string",
"info": "TraceId=dd033ebf1e260d815f4bccad149bbc15"
},
{
"type": "string",
"info": "ExceptionType=Microsoft.Online.Metrics.MetricsMP.Utilities.RPRequestFormatException"
}
],
"code": "BadRequest",
"message": "Detected invalid time range parameters for API version 2023-10-01. Please use only starttime and endtime to specify a time range."
}
}
Query Storage Metrics
Esempio di richiesta
POST {endpoint}/subscriptions/12345678-abcd-1234-abcd-123456789abc/metrics:getBatch?starttime=2023-02-01T20:00:00.123Z&endtime=2023-02-01T23:00:00.345Z&interval=PT15M&metricnamespace=Microsoft.Storage/storageAccounts&metricnames=Ingress,Egress&aggregation=average,minimum,maximum&top=10&orderby=average desc&filter=ApiName eq 'GetBlob' or ApiName eq 'GetBlobServiceProperties' and Authentication eq '*'&api-version=2023-10-01
{
"resourceids": [
"/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/TestGroup/providers/Microsoft.Storage/storageAccounts/TestStorage1",
"/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/TestGroup/providers/Microsoft.Storage/storageAccounts/TestStorage2"
]
}
Risposta di esempio
{
"values": [
{
"starttime": "2023-02-01T20:00:00.123Z",
"endtime": "2023-02-01T23:00:00.345Z",
"interval": "PT15M",
"value": [
{
"id": "/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/TestGroup/providers/Microsoft.Storage/storageAccounts/TestStorage1/providers/Microsoft.Insights/metrics/Ingress",
"type": "Microsoft.Insights/metrics",
"name": {
"value": "Ingress",
"localizedValue": "Ingress"
},
"displayDescription": "The amount of ingress data, in bytes. This number includes ingress from an external client into Azure Storage as well as ingress within Azure.",
"unit": "Bytes",
"timeseries": [
{
"metadatavalues": [
{
"name": {
"value": "apiname",
"localizedValue": "apiname"
},
"value": "GetBlob"
},
{
"name": {
"value": "authentication",
"localizedValue": "authentication"
},
"value": "SAS"
}
],
"data": [
{
"timeStamp": "2023-02-01T20:00:00Z",
"average": 437,
"minimum": 437,
"maximum": 437
},
{
"timeStamp": "2023-02-01T20:15:00Z",
"average": 438.0735294117647,
"minimum": 437,
"maximum": 583
},
{
"timeStamp": "2023-02-01T20:30:00Z",
"average": 437,
"minimum": 437,
"maximum": 437
},
{
"timeStamp": "2023-02-01T20:45:00Z",
"average": 437.54477611940297,
"minimum": 437,
"maximum": 583
},
{
"timeStamp": "2023-02-01T21:00:00Z",
"average": 437,
"minimum": 437,
"maximum": 437
},
{
"timeStamp": "2023-02-01T21:15:00Z",
"average": 438.0735294117647,
"minimum": 437,
"maximum": 583
},
{
"timeStamp": "2023-02-01T21:30:00Z",
"average": 437,
"minimum": 437,
"maximum": 437
},
{
"timeStamp": "2023-02-01T21:45:00Z",
"average": 437.54477611940297,
"minimum": 437,
"maximum": 583
},
{
"timeStamp": "2023-02-01T22:00:00Z",
"average": 437,
"minimum": 437,
"maximum": 437
},
{
"timeStamp": "2023-02-01T22:15:00Z",
"average": 438.0735294117647,
"minimum": 437,
"maximum": 583
},
{
"timeStamp": "2023-02-01T22:30:00Z",
"average": 437,
"minimum": 437,
"maximum": 437
},
{
"timeStamp": "2023-02-01T22:45:00Z",
"average": 437.542750929368,
"minimum": 437,
"maximum": 583
}
]
},
{
"metadatavalues": [
{
"name": {
"value": "apiname",
"localizedValue": "apiname"
},
"value": "GetBlobServiceProperties"
},
{
"name": {
"value": "authentication",
"localizedValue": "authentication"
},
"value": "AccountKey"
}
],
"data": [
{
"timeStamp": "2023-02-01T20:00:00Z"
},
{
"timeStamp": "2023-02-01T20:15:00Z"
},
{
"timeStamp": "2023-02-01T20:30:00Z"
},
{
"timeStamp": "2023-02-01T20:45:00Z"
},
{
"timeStamp": "2023-02-01T21:00:00Z"
},
{
"timeStamp": "2023-02-01T21:15:00Z"
},
{
"timeStamp": "2023-02-01T21:30:00Z"
},
{
"timeStamp": "2023-02-01T21:45:00Z"
},
{
"timeStamp": "2023-02-01T22:00:00Z",
"average": 342,
"minimum": 342,
"maximum": 342
},
{
"timeStamp": "2023-02-01T22:15:00Z"
},
{
"timeStamp": "2023-02-01T22:30:00Z"
},
{
"timeStamp": "2023-02-01T22:45:00Z"
}
]
}
],
"errorCode": "Success"
},
{
"id": "/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/TestGroup/providers/Microsoft.Storage/storageAccounts/TestStorage1/providers/Microsoft.Insights/metrics/Egress",
"type": "Microsoft.Insights/metrics",
"name": {
"value": "Egress",
"localizedValue": "Egress"
},
"displayDescription": "The amount of egress data. This number includes egress to external client from Azure Storage as well as egress within Azure. As a result, this number does not reflect billable egress.",
"unit": "Bytes",
"timeseries": [
{
"metadatavalues": [
{
"name": {
"value": "apiname",
"localizedValue": "apiname"
},
"value": "GetBlobServiceProperties"
},
{
"name": {
"value": "authentication",
"localizedValue": "authentication"
},
"value": "AccountKey"
}
],
"data": [
{
"timeStamp": "2023-02-01T20:00:00Z"
},
{
"timeStamp": "2023-02-01T20:15:00Z"
},
{
"timeStamp": "2023-02-01T20:30:00Z"
},
{
"timeStamp": "2023-02-01T20:45:00Z"
},
{
"timeStamp": "2023-02-01T21:00:00Z"
},
{
"timeStamp": "2023-02-01T21:15:00Z"
},
{
"timeStamp": "2023-02-01T21:30:00Z"
},
{
"timeStamp": "2023-02-01T21:45:00Z"
},
{
"timeStamp": "2023-02-01T22:00:00Z",
"average": 796,
"minimum": 796,
"maximum": 796
},
{
"timeStamp": "2023-02-01T22:15:00Z"
},
{
"timeStamp": "2023-02-01T22:30:00Z"
},
{
"timeStamp": "2023-02-01T22:45:00Z"
}
]
},
{
"metadatavalues": [
{
"name": {
"value": "apiname",
"localizedValue": "apiname"
},
"value": "GetBlob"
},
{
"name": {
"value": "authentication",
"localizedValue": "authentication"
},
"value": "SAS"
}
],
"data": [
{
"timeStamp": "2023-02-01T20:00:00Z",
"average": 361,
"minimum": 361,
"maximum": 361
},
{
"timeStamp": "2023-02-01T20:15:00Z",
"average": 365.83088235294116,
"minimum": 361,
"maximum": 1018
},
{
"timeStamp": "2023-02-01T20:30:00Z",
"average": 361,
"minimum": 361,
"maximum": 361
},
{
"timeStamp": "2023-02-01T20:45:00Z",
"average": 363.4514925373134,
"minimum": 361,
"maximum": 1018
},
{
"timeStamp": "2023-02-01T21:00:00Z",
"average": 361,
"minimum": 361,
"maximum": 361
},
{
"timeStamp": "2023-02-01T21:15:00Z",
"average": 365.83088235294116,
"minimum": 361,
"maximum": 1018
},
{
"timeStamp": "2023-02-01T21:30:00Z",
"average": 361,
"minimum": 361,
"maximum": 361
},
{
"timeStamp": "2023-02-01T21:45:00Z",
"average": 363.4514925373134,
"minimum": 361,
"maximum": 1018
},
{
"timeStamp": "2023-02-01T22:00:00Z",
"average": 361,
"minimum": 361,
"maximum": 361
},
{
"timeStamp": "2023-02-01T22:15:00Z",
"average": 365.83088235294116,
"minimum": 361,
"maximum": 1018
},
{
"timeStamp": "2023-02-01T22:30:00Z",
"average": 361,
"minimum": 361,
"maximum": 361
},
{
"timeStamp": "2023-02-01T22:45:00Z",
"average": 363.4423791821561,
"minimum": 361,
"maximum": 1018
}
]
}
],
"errorCode": "Success"
}
],
"namespace": "microsoft.storage/storageaccounts",
"resourceregion": "eastus",
"resourceid": "/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/TestGroup/providers/Microsoft.Storage/storageAccounts/TestStorage1"
},
{
"starttime": "2023-02-01T20:00:00.123Z",
"endtime": "2023-02-01T23:00:00.345Z",
"interval": "PT15M",
"value": [
{
"id": "/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/TestGroup/providers/Microsoft.Storage/storageAccounts/TestStorage2/providers/Microsoft.Insights/metrics/Ingress",
"type": "Microsoft.Insights/metrics",
"name": {
"value": "Ingress",
"localizedValue": "Ingress"
},
"displayDescription": "The amount of ingress data, in bytes. This number includes ingress from an external client into Azure Storage as well as ingress within Azure.",
"unit": "Bytes",
"timeseries": [
{
"metadatavalues": [
{
"name": {
"value": "apiname",
"localizedValue": "apiname"
},
"value": "GetBlobServiceProperties"
},
{
"name": {
"value": "authentication",
"localizedValue": "authentication"
},
"value": "AccountKey"
}
],
"data": [
{
"timeStamp": "2023-02-01T20:00:00Z"
},
{
"timeStamp": "2023-02-01T20:15:00Z"
},
{
"timeStamp": "2023-02-01T20:30:00Z"
},
{
"timeStamp": "2023-02-01T20:45:00Z"
},
{
"timeStamp": "2023-02-01T21:00:00Z"
},
{
"timeStamp": "2023-02-01T21:15:00Z"
},
{
"timeStamp": "2023-02-01T21:30:00Z"
},
{
"timeStamp": "2023-02-01T21:45:00Z"
},
{
"timeStamp": "2023-02-01T22:00:00Z",
"average": 330,
"minimum": 330,
"maximum": 330
},
{
"timeStamp": "2023-02-01T22:15:00Z"
},
{
"timeStamp": "2023-02-01T22:30:00Z"
},
{
"timeStamp": "2023-02-01T22:45:00Z"
}
]
}
],
"errorCode": "Success"
},
{
"id": "/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/TestGroup/providers/Microsoft.Storage/storageAccounts/TestStorage2/providers/Microsoft.Insights/metrics/Egress",
"type": "Microsoft.Insights/metrics",
"name": {
"value": "Egress",
"localizedValue": "Egress"
},
"displayDescription": "The amount of egress data. This number includes egress to external client from Azure Storage as well as egress within Azure. As a result, this number does not reflect billable egress.",
"unit": "Bytes",
"timeseries": [
{
"metadatavalues": [
{
"name": {
"value": "apiname",
"localizedValue": "apiname"
},
"value": "GetBlobServiceProperties"
},
{
"name": {
"value": "authentication",
"localizedValue": "authentication"
},
"value": "AccountKey"
}
],
"data": [
{
"timeStamp": "2023-02-01T20:00:00Z"
},
{
"timeStamp": "2023-02-01T20:15:00Z"
},
{
"timeStamp": "2023-02-01T20:30:00Z"
},
{
"timeStamp": "2023-02-01T20:45:00Z"
},
{
"timeStamp": "2023-02-01T21:00:00Z"
},
{
"timeStamp": "2023-02-01T21:15:00Z"
},
{
"timeStamp": "2023-02-01T21:30:00Z"
},
{
"timeStamp": "2023-02-01T21:45:00Z"
},
{
"timeStamp": "2023-02-01T22:00:00Z",
"average": 880,
"minimum": 880,
"maximum": 880
},
{
"timeStamp": "2023-02-01T22:15:00Z"
},
{
"timeStamp": "2023-02-01T22:30:00Z"
},
{
"timeStamp": "2023-02-01T22:45:00Z"
}
]
}
],
"errorCode": "Success"
}
],
"namespace": "microsoft.storage/storageaccounts",
"resourceregion": "eastus",
"resourceid": "/subscriptions/12345678-abcd-1234-abcd-123456789abc/resourceGroups/TestGroup/providers/Microsoft.Storage/storageAccounts/TestStorage2"
}
]
}
x-ms-error-code: BadRequest
{
"error": {
"additionalInfo": [
{
"type": "string",
"info": "TraceId={00000000-0000-0000-0000-000000000000}"
},
{
"type": "string",
"info": "ExceptionType=Microsoft.Online.Metrics.MetricsMP.Utilities.RPRequestFormatException"
}
],
"code": "BadRequest",
"message": "Query endTime: 06/06/2021 00:00:00 is out of the Max metrics retention period: 93.00:00:00, traceId: {00000000-0000-0000-0000-000000000000}"
}
}
Definizioni
Nome | Descrizione |
---|---|
Error |
Informazioni aggiuntive sull'errore di gestione delle risorse. |
Error |
Dettagli dell'errore. |
Error |
Risposta di errore |
Localizable |
Classe stringa localizzabile. |
Metadata |
Rappresenta un valore dei metadati della metrica. |
Metric |
Dati dei risultati di una query. |
Metric |
Risultato delle metriche per una risorsa. |
Metric |
Unità della metrica. |
Metric |
Rappresenta un valore della metrica. |
Resource |
Elenco delimitato da virgole di ID risorsa per cui eseguire query sulle metriche. |
Time |
Tipo di risultato time series. Il valore discriminatorio è sempre TimeSeries in questo caso. |
Values |
Raccolta di risposte ai dati delle metriche per risorsa, per metrica. |
ErrorAdditionalInfo
Informazioni aggiuntive sull'errore di gestione delle risorse.
Nome | Tipo | Descrizione |
---|---|---|
info |
object |
Informazioni aggiuntive. |
type |
string |
Tipo di informazioni aggiuntive. |
ErrorDetail
Dettagli dell'errore.
Nome | Tipo | Descrizione |
---|---|---|
additionalInfo |
Informazioni aggiuntive sull'errore. |
|
code |
string |
Codice di errore. |
details |
Dettagli dell'errore. |
|
message |
string |
Messaggio di errore. |
target |
string |
Destinazione dell'errore. |
ErrorResponse
Risposta di errore
Nome | Tipo | Descrizione |
---|---|---|
error |
Oggetto error. |
LocalizableString
Classe stringa localizzabile.
Nome | Tipo | Descrizione |
---|---|---|
localizedValue |
string |
Nome visualizzato. |
value |
string |
Valore invariante. |
MetadataValue
Rappresenta un valore dei metadati della metrica.
Nome | Tipo | Descrizione |
---|---|---|
name |
Nome dei metadati. |
|
value |
string |
Valore dei metadati. |
Metric
Dati dei risultati di una query.
Nome | Tipo | Descrizione |
---|---|---|
displayDescription |
string |
Descrizione dettagliata di questa metrica. |
errorCode |
string |
'Operazione riuscita' o dettagli dell'errore sugli errori di query per questa metrica. |
errorMessage |
string |
Messaggio di errore durante la query su questa metrica specifica. |
id |
string |
ID metrica. |
name |
Il nome e il nome visualizzato della metrica, ovvero è una stringa localizzabile. |
|
timeseries |
Serie temporale restituita quando viene eseguita una query di dati. |
|
type |
string |
Tipo di risorsa della risorsa metrica. |
unit |
Unità della metrica. |
MetricResultsResponse
Risultato delle metriche per una risorsa.
Nome | Tipo | Descrizione |
---|---|---|
values |
Values[] |
Raccolta di risposte ai dati delle metriche per risorsa, per metrica. |
MetricUnit
Unità della metrica.
Valore | Descrizione |
---|---|
BitsPerSecond |
Unità di frequenza delle cifre binarie al secondo. |
ByteSeconds |
Unità di trasferimento o archiviazione dei dati. Si tratta delle dimensioni dei dati in byte moltiplicati per il tempo necessario per trasferire o archiviare i dati in secondi. |
Bytes |
Unità di memoria in byte. |
BytesPerSecond |
Unità di frequenza della memoria in byte al secondo. |
Cores |
Unità di potenza di elaborazione. |
Count |
Unità di quantità non elaborata. |
CountPerSecond |
Unità di frequenza della quantità non elaborata al secondo. |
MilliCores |
Unità di potenza di elaborazione in 1/1000 di un core CPU. |
MilliSeconds |
Unità di tempo in 1/1000 di secondo. |
NanoCores |
Unità di potenza di elaborazione in un miliardesimo di core CPU. |
Percent |
Unità percentuale. |
Seconds |
Unità di tempo in secondi. |
Unspecified |
Nessuna unità specificata. |
MetricValue
Rappresenta un valore della metrica.
Nome | Tipo | Descrizione |
---|---|---|
average |
number (double) |
Valore medio nell'intervallo di tempo. |
count |
number (double) |
Numero di campioni nell'intervallo di tempo. Può essere usato per determinare il numero di valori che hanno contribuito al valore medio. |
maximum |
number (double) |
Valore massimo nell'intervallo di tempo. |
minimum |
number (double) |
Valore minimo nell'intervallo di tempo. |
timeStamp |
string (date-time) |
Timestamp per il valore della metrica in formato ISO 8601. |
total |
number (double) |
Somma di tutti i valori nell'intervallo di tempo. |
ResourceIdList
Elenco delimitato da virgole di ID risorsa per cui eseguire query sulle metriche.
Nome | Tipo | Descrizione |
---|---|---|
resourceids |
string[] (arm-id) |
Elenco di ID risorsa per cui eseguire query sulle metriche. |
TimeSeriesElement
Tipo di risultato time series. Il valore discriminatorio è sempre TimeSeries in questo caso.
Nome | Tipo | Descrizione |
---|---|---|
data |
Matrice di punti dati che rappresentano i valori delle metriche. Viene restituito solo se viene specificato un tipo di dati di risultato. |
|
metadatavalues |
I valori dei metadati restituiti se $filter è stato specificato nella chiamata. |
Values
Raccolta di risposte ai dati delle metriche per risorsa, per metrica.
Nome | Tipo | Descrizione |
---|---|---|
endtime |
string |
Ora di fine, in formato datetime, per cui sono stati recuperati i dati. |
interval |
string |
Intervallo (dimensione finestra) per il quale sono stati restituiti i dati delle metriche nel formato di durata ISO 8601 con un caso speciale per il valore "FULL" che restituisce un singolo punto dati per l'intero intervallo di tempo richiesto (Esempi: PT15M, PT1H, P1D, FULL). Questa operazione può essere modificata e diversa da quella richiesta originariamente se viene specificato AutoAdjustTimegrain=true. |
namespace |
string |
Lo spazio dei nomi delle metriche è stato sottoposto a query |
resourceid |
string |
Risorsa su cui sono state eseguite query per le metriche. |
resourceregion |
string |
L'area della risorsa è stata interrogata per le metriche. |
starttime |
string |
Ora di inizio, in formato datetime, per cui sono stati recuperati i dati. |
value |
Metric[] |
Valore dell'insieme. |