Metrics Batch - Batch
Lists nilai metrik untuk beberapa sumber daya.
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
Parameter URI
Nama | Dalam | Diperlukan | Jenis | Deskripsi |
---|---|---|---|---|
endpoint
|
path | True |
string url |
Titik akhir regional yang akan digunakan, misalnya https://eastus.metrics.monitor.azure.com. Wilayah harus cocok dengan wilayah sumber daya yang diminta. Untuk sumber daya global, wilayah harus 'global'. |
subscription
|
path | True |
string uuid |
Pengidentifikasi langganan untuk sumber daya dalam batch ini. |
api-version
|
query | True |
string |
Versi Api Klien. |
metricnames
|
query | True |
string[] |
Nama metrik (dipisahkan koma) untuk diambil. |
metricnamespace
|
query | True |
string |
Namespace metrik yang berisi nama metrik yang diminta. |
aggregation
|
query |
string |
Daftar jenis agregasi (dipisahkan koma) untuk diambil. Contoh: rata-rata, minimum, maksimum |
|
endtime
|
query |
string |
Waktu akhir kueri. Ini adalah string dalam format 'yyyy-MM-ddTHH:mm:ss.fffZ'. |
|
filter
|
query |
string |
Filter digunakan untuk mengurangi kumpulan data metrik yang dikembalikan. |
|
interval
|
query |
string |
Interval (yaitu timegrain) kueri dalam format durasi ISO 8601. Default ke PT1M. Kasus khusus untuk nilai 'PENUH' yang mengembalikan titik data tunggal selama rentang waktu yang diminta. Contoh: PT15M, PT1H, P1D, FULL |
|
orderby
|
query |
string |
Agregasi yang digunakan untuk mengurutkan hasil dan arah pengurutan. Hanya satu pesanan yang dapat ditentukan. Contoh: jumlah asc |
|
rollupby
|
query |
string |
Nama dimensi untuk menggulung hasil. Misalnya jika Anda hanya ingin melihat nilai metrik dengan filter seperti 'City eq Seattle atau City eq Tacoma' tetapi tidak ingin melihat nilai terpisah untuk setiap kota, Anda dapat menentukan 'RollUpBy=City' untuk melihat hasil untuk Seattle dan Tacoma digulung menjadi satu kali. |
|
starttime
|
query |
string |
Waktu mulai kueri. Ini adalah string dalam format 'yyyy-MM-ddTHH:mm:ss.fffZ'. Jika Anda telah menentukan parameter endtime, maka parameter ini diperlukan. Jika hanya waktu mulai yang ditentukan, maka waktu akhir default ke waktu saat ini. Jika tidak ada interval waktu yang ditentukan, defaultnya adalah 1 jam. |
|
top
|
query |
integer int32 |
Jumlah maksimum rekaman yang akan diambil per ID sumber daya dalam permintaan. Valid hanya jika filter ditentukan. Default ke 10. |
Isi Permintaan
Nama | Jenis | Deskripsi |
---|---|---|
resourceids |
string[] |
Daftar ID sumber daya untuk metrik kueri. |
Respons
Nama | Jenis | Deskripsi |
---|---|---|
200 OK |
Respons terhadap kueri metrik. |
|
Other Status Codes |
Menjelaskan format respons Kesalahan. Header x-ms-error-code: string |
Keamanan
AADToken
Autentikasi OAuth2 Azure Active Directory
Jenis:
oauth2
Alur:
application
URL token:
https://login.microsoftonline.com/common/oauth2/v2.0/token
Cakupan
Nama | Deskripsi |
---|---|
https://metrics.monitor.azure.com/.default | https://metrics.monitor.azure.com/.default |
Contoh
Query Redis Metrics summary |
Query Storage Metrics |
Query Redis Metrics summary
Permintaan sampel
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"
]
}
Respon sampel
{
"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
Permintaan sampel
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"
]
}
Respon sampel
{
"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}"
}
}
Definisi
Nama | Deskripsi |
---|---|
Error |
Info tambahan kesalahan manajemen sumber daya. |
Error |
Detail kesalahan. |
Error |
Respons kesalahan |
Localizable |
Kelas string yang dapat dilokalkan. |
Metadata |
Mewakili nilai metadata metrik. |
Metric |
Data hasil kueri. |
Metric |
Hasil metrik untuk sumber daya. |
Metric |
Unit metrik. |
Metric |
Mewakili nilai metrik. |
Resource |
Daftar ID sumber daya yang dipisahkan koma untuk mengkueri metrik. |
Time |
Jenis hasil rangkaian waktu. Nilai diskriminator selalu TimeSeries dalam kasus ini. |
Values |
Pengumpulan respons data metrik per sumber daya, per metrik. |
ErrorAdditionalInfo
Info tambahan kesalahan manajemen sumber daya.
Nama | Jenis | Deskripsi |
---|---|---|
info |
object |
Info tambahan. |
type |
string |
Jenis info tambahan. |
ErrorDetail
Detail kesalahan.
Nama | Jenis | Deskripsi |
---|---|---|
additionalInfo |
Info tambahan kesalahan. |
|
code |
string |
Kode kesalahan. |
details |
Detail kesalahan. |
|
message |
string |
Pesan kesalahan. |
target |
string |
Target kesalahan. |
ErrorResponse
Respons kesalahan
Nama | Jenis | Deskripsi |
---|---|---|
error |
Objek kesalahan. |
LocalizableString
Kelas string yang dapat dilokalkan.
Nama | Jenis | Deskripsi |
---|---|---|
localizedValue |
string |
Nama tampilan. |
value |
string |
Nilai invarian. |
MetadataValue
Mewakili nilai metadata metrik.
Nama | Jenis | Deskripsi |
---|---|---|
name |
Nama metadata. |
|
value |
string |
Nilai metadata. |
Metric
Data hasil kueri.
Nama | Jenis | Deskripsi |
---|---|---|
displayDescription |
string |
Deskripsi terperinci tentang metrik ini. |
errorCode |
string |
'Berhasil' atau detail kesalahan tentang kegagalan kueri untuk metrik ini. |
errorMessage |
string |
Pesan kesalahan terjadi saat mengkueri metrik khusus ini. |
id |
string |
Id metrik. |
name |
Nama dan nama tampilan metrik, yaitu string yang dapat dilokalkan. |
|
timeseries |
Rangkaian waktu dikembalikan saat kueri data dilakukan. |
|
type |
string |
Jenis sumber daya sumber daya metrik. |
unit |
Unit metrik. |
MetricResultsResponse
Hasil metrik untuk sumber daya.
Nama | Jenis | Deskripsi |
---|---|---|
values |
Values[] |
Pengumpulan respons data metrik per sumber daya, per metrik. |
MetricUnit
Unit metrik.
Nama | Jenis | Deskripsi |
---|---|---|
BitsPerSecond |
string |
Unit laju digit biner per detik. |
ByteSeconds |
string |
Unit transfer atau penyimpanan data. Ini adalah ukuran data dalam byte dikalikan dengan waktu yang diperlukan untuk mentransfer atau menyimpan data dalam hitungan detik. |
Bytes |
string |
Satuan memori dalam byte. |
BytesPerSecond |
string |
Tingkatkan unit memori dalam byte per detik. |
Cores |
string |
Unit daya pemrosesan. |
Count |
string |
Unit kuantitas mentah. |
CountPerSecond |
string |
Unit tarif kuantitas mentah per detik. |
MilliCores |
string |
Unit daya pemrosesan di 1/1000 dari inti CPU. |
MilliSeconds |
string |
Satuan waktu dalam 1/1000 detik. |
NanoCores |
string |
Unit daya pemrosesan dalam satu miliar inti CPU. |
Percent |
string |
Unit persentase. |
Seconds |
string |
Satuan waktu dalam hitungan detik. |
Unspecified |
string |
Tidak ada unit yang ditentukan. |
MetricValue
Mewakili nilai metrik.
Nama | Jenis | Deskripsi |
---|---|---|
average |
number |
Nilai rata-rata dalam rentang waktu. |
count |
number |
Jumlah sampel dalam rentang waktu. Dapat digunakan untuk menentukan jumlah nilai yang berkontribusi pada nilai rata-rata. |
maximum |
number |
Nilai terbesar dalam rentang waktu. |
minimum |
number |
Nilai paling sedikit dalam rentang waktu. |
timeStamp |
string |
Tanda waktu untuk nilai metrik dalam format ISO 8601. |
total |
number |
Jumlah semua nilai dalam rentang waktu. |
ResourceIdList
Daftar ID sumber daya yang dipisahkan koma untuk mengkueri metrik.
Nama | Jenis | Deskripsi |
---|---|---|
resourceids |
string[] |
Daftar ID sumber daya untuk metrik kueri. |
TimeSeriesElement
Jenis hasil rangkaian waktu. Nilai diskriminator selalu TimeSeries dalam kasus ini.
Nama | Jenis | Deskripsi |
---|---|---|
data |
Array titik data yang mewakili nilai metrik. Ini hanya dikembalikan jika jenis hasil data ditentukan. |
|
metadatavalues |
Nilai metadata dikembalikan jika $filter ditentukan dalam panggilan. |
Values
Pengumpulan respons data metrik per sumber daya, per metrik.
Nama | Jenis | Deskripsi |
---|---|---|
endtime |
string |
Waktu akhir, dalam format tanggalwaktu, tempat data diambil. |
interval |
string |
Interval (ukuran jendela) yang data metriknya dikembalikan dalam format durasi ISO 8601 dengan kasus khusus untuk nilai 'FULL' yang mengembalikan titik data tunggal untuk seluruh rentang waktu yang diminta (Contoh: PT15M, PT1H, P1D, FULL). Ini dapat disesuaikan dan berbeda dari apa yang awalnya diminta jika AutoAdjustTimegrain=true ditentukan. |
namespace |
string |
Namespace metrik telah dikueri |
resourceid |
string |
Sumber daya yang telah dikueri untuk metrik. |
resourceregion |
string |
Wilayah sumber daya telah dikueri untuk metrik. |
starttime |
string |
Waktu mulai, dalam format tanggalwaktu, tempat data diambil. |
value |
Metric[] |
Nilai koleksi. |