Mengkueri data pemantauan terbaru untuk instans atau matriks. Anda dapat mengkueri data deret waktu seperti CPU, memori, disk, dan jaringan.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| MetricNames |
array |
Yes |
Daftar data deret waktu pemantauan. |
|
|
string |
No |
The name of the metric. Valid values:
|
cpu_utilization |
|
| AndroidInstanceIds |
array |
No |
Untuk pemantauan tingkat instans, tentukan daftar ID instans Cloud Phone. |
|
|
string |
No |
For instance-level monitoring, specify the Cloud Phone instance ID. |
acp-6nongia0tuev7**** |
|
| Period |
integer |
No |
Periode statistik untuk data pemantauan. Nilai valid: 60, 900, dan 3600. Unit: detik. Valid values:
|
60 |
| StartTime |
string |
No |
Pengatur waktu mulai untuk kueri. |
2019-01-31 10:00:00 |
| EndTime |
string |
No |
Pengatur waktu akhir untuk kueri. |
2019-01-31 11:00:00 |
| NextToken |
string |
No |
Token yang menandai awal posisi pembacaan saat ini. Jika Anda mengosongkan parameter ini, kueri dimulai dari awal. |
AAAAAV3MpHK1AP0pfERHZN5pu6l5V9uONHqPtDLM2U8s**** |
| Length |
string |
No |
Jumlah rekaman data pemantauan yang dikembalikan pada setiap halaman untuk kueri berhalaman. Nilai default adalah 1000. Ini berarti 1000 rekaman data pemantauan dikembalikan per halaman. |
1000 |
| InstanceIds |
array |
No |
Daftar ID instans. |
|
|
string |
No |
The instance ID. Catatan
If you specify a bandwidth plan ID, you can query the latest bandwidth data for the bandwidth plan. |
np-5hh4a31emkt6u**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data returned by the operation. |
||
| RequestId |
string |
The request ID. |
2B9E6946-0E2A-5D2B-B275-361DF81F**** |
| Count |
integer |
The number of records. |
100 |
| NextToken |
string |
The token for the next query. If not all results are returned in a single query, the returned NextToken is not empty. You can use the returned NextToken in the next query to query the next page. |
AAAAAV3MpHK1AP0pfERHZN5pu6kU+SQXzm0H9mu/FiSc**** |
| MetricTotalModel |
array<object> |
The instance monitoring data. |
|
|
array<object> |
The instance monitoring data. |
||
| AndroidInstanceId |
string |
For instance-level monitoring, the Cloud Phone instance ID is returned. |
acp-fkuit0cmyru4p**** |
| MetricModelList |
array<object> |
The monitoring data for metrics. |
|
|
array<object> |
The monitoring data for the metric. |
||
| MetricName |
string |
The name of the metric. |
cpu_utilization |
| DataPoints |
array<object> |
The monitoring data points. |
|
|
object |
The monitoring data point. |
||
| Timestamp |
integer |
The timestamp of the statistics. Unit: milliseconds. |
1548777660000 |
| Minimum |
number |
The minimum value. Unit: %. Catatan
The unit is bps when the metric is `bandwidth_package_usage_out` or `bandwidth_package_usage_in`. |
93.1 |
| Average |
number |
The average value. Unit: %. Catatan
The unit is bps when the metric is `bandwidth_package_usage_out` or `bandwidth_package_usage_in`. |
99.52 |
| Maximum |
number |
The maximum value. Unit: %. Catatan
The unit is bps when the metric is `bandwidth_package_usage_out` or `bandwidth_package_usage_in`. |
100 |
| GpuId |
string |
The GPU ID. |
cpn-1t1bxvp9az2pk****-gpu-0 |
| ProcessLastInfos |
array<object> |
The process monitoring metrics. Catatan
This parameter is returned when the metric is `process_cpu` or `process_memory`. |
|
|
object |
The process monitoring metric. |
||
| Timestamp |
integer |
The timestamp of the statistics. Unit: milliseconds. |
1548777660000 |
| Name |
string |
The process name. |
com.offerup |
| ProcessIds |
array |
The list of process IDs. |
|
|
integer |
The process ID. |
100056 |
|
| MemoryUsage |
number |
The memory usage. Unit: %. |
50 |
| CpuUsage |
number |
The CPU utilization. Unit: %. |
50 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2B9E6946-0E2A-5D2B-B275-361DF81F****",
"Count": 100,
"NextToken": "AAAAAV3MpHK1AP0pfERHZN5pu6kU+SQXzm0H9mu/FiSc****",
"MetricTotalModel": [
{
"AndroidInstanceId": "acp-fkuit0cmyru4p****",
"MetricModelList": [
{
"MetricName": "cpu_utilization",
"DataPoints": [
{
"Timestamp": 1548777660000,
"Minimum": 93.1,
"Average": 99.52,
"Maximum": 100,
"GpuId": "cpn-1t1bxvp9az2pk****-gpu-0"
}
],
"ProcessLastInfos": [
{
"Timestamp": 1548777660000,
"Name": "com.offerup",
"ProcessIds": [
100056
],
"MemoryUsage": 50,
"CpuUsage": 50
}
]
}
]
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.