解决了

REST API V1中统计项目的内容


我使用REST API V1获取VM信息。获得的信息中有名为统计信息的信息。但是我找不到统计信息中项目的描述。有人知道该网站或任何具有此信息的信息吗?

图标

最好的答案阿罗纳2021年2月12日,05:32

Hi there!<\/p>

Go to Prism Element REST API Explorer (gear icon dropdown) and at the top right corner choose API v1 version.<\/p>

v1\/vms\/ will give you an example of stats (interpreting them is a different story):<\/p>

\"stats\": {
\"hypervisor_avg_io_latency_usecs\": \"0\",
\"num_read_iops\": \"-1\",
\"hypervisor_write_io_bandwidth_kBps\": \"0\",
\"timespan_usecs\": \"-1\",
\"controller_num_read_iops\": \"0\",
\"controller.storage_tier.ssd.usage_bytes\": \"756051968\",
\"read_io_ppm\": \"-1\",
\"controller_num_iops\": \"0\",
\"hypervisor_memory_assigned_bytes\": \"-1\",
\"total_read_io_time_usecs\": \"-1\",
\"controller_total_read_io_time_usecs\": \"0\",
\"controller.storage_tier.ssd.configured_pinned_bytes\": \"0\",
\"hypervisor_num_io\": \"0\",
\"controller_total_transformed_usage_bytes\": \"0\",
\"hypervisor_cpu_usage_ppm\": \"25226\",
\"controller_num_write_io\": \"1\",
\"avg_read_io_latency_usecs\": \"-1\",
\"guest.memory_swapped_in_bytes\": \"0\",
\"controller_total_io_time_usecs\": \"1022\",
\"memory_usage_ppm\": \"87138\",
\"controller_total_read_io_size_kbytes\": \"0\",
\"controller_num_seq_io\": \"-1\",
\"controller_read_io_ppm\": \"0\",
\"controller_total_io_size_kbytes\": \"4\",
\"hypervisor.cpu_ready_time_ppm\": \"231\",
\"controller_num_io\": \"1\",
\"hypervisor_avg_read_io_latency_usecs\": \"0\",
\"num_write_iops\": \"-1\",
\"controller_num_random_io\": \"0\",
\"num_iops\": \"-1\",
\"guest.memory_usage_ppm\": \"87138\",
\"hypervisor_num_read_io\": \"0\",
\"hypervisor_total_read_io_time_usecs\": \"0\",
\"controller_avg_io_latency_usecs\": \"1022\",
\"num_io\": \"-1\",
\"controller_num_read_io\": \"0\",
\"hypervisor_num_write_io\": \"0\",
\"controller_seq_io_ppm\": \"-1\",
\"guest.memory_usage_bytes\": \"711401472\",
\"controller_read_io_bandwidth_kBps\": \"0\",
\"controller_io_bandwidth_kBps\": \"0\",
\"hypervisor_num_received_bytes\": \"59617\",
\"hypervisor_timespan_usecs\": \"44193851\",
\"hypervisor_num_write_iops\": \"0\",
\"total_read_io_size_kbytes\": \"-1\",
\"hypervisor_total_io_size_kbytes\": \"0\",
\"avg_io_latency_usecs\": \"-1\",
\"hypervisor_num_read_iops\": \"0\",
\"hypervisor_swap_in_rate_kBps\": \"-1\",
\"controller_write_io_bandwidth_kBps\": \"0\",
\"controller_write_io_ppm\": \"1000000\",
\"controller_user_bytes\": \"48842076160\",
\"hypervisor_avg_write_io_latency_usecs\": \"0\",
\"hypervisor_num_transmitted_bytes\": \"444\",
\"hypervisor_total_read_io_size_kbytes\": \"0\",
\"read_io_bandwidth_kBps\": \"-1\",
\"guest.memory_swapped_out_bytes\": \"0\",
\"hypervisor_memory_usage_ppm\": \"1000000\",
\"hypervisor_num_iops\": \"0\",
\"hypervisor_io_bandwidth_kBps\": \"0\",
\"controller_num_write_iops\": \"0\",
\"total_io_time_usecs\": \"-1\",
\"controller_random_io_ppm\": \"-1\",
\"controller.storage_tier.das-sata.usage_bytes\": \"83346403328\",
\"controller_avg_read_io_size_kbytes\": \"0\",
\"hypervisor_swap_out_rate_kBps\": \"-1\",
\"total_transformed_usage_bytes\": \"-1\",
\"avg_write_io_latency_usecs\": \"-1\",
\"num_read_io\": \"-1\",
\"write_io_bandwidth_kBps\": \"-1\",
\"hypervisor_read_io_bandwidth_kBps\": \"0\",
\"hypervisor_consumed_memory_bytes\": \"-1\",
\"random_io_ppm\": \"-1\",
\"total_untransformed_usage_bytes\": \"-1\",
\"hypervisor_total_io_time_usecs\": \"0\",
\"num_random_io\": \"-1\",
\"controller_avg_write_io_size_kbytes\": \"4\",
\"controller_avg_read_io_latency_usecs\": \"0\",
\"controller.storage_tier.das-sata.configured_pinned_bytes\": \"0\",
\"num_write_io\": \"-1\",
\"total_io_size_kbytes\": \"-1\",
\"controller.storage_tier.cloud.usage_bytes\": \"0\",
\"io_bandwidth_kBps\": \"-1\",
\"controller_timespan_usecs\": \"30000000\",
\"num_seq_io\": \"-1\",
\"seq_io_ppm\": \"-1\",
\"write_io_ppm\": \"-1\",
\"controller_avg_write_io_latency_usecs\": \"1022\"
},<\/code><\/pre>


\u00a0<\/p>","className":"post__content__best_answer"}">

查看原件

该主题已关闭以供评论

4个答复

UserLevel 6
徽章 +5

嘿, @itg_sgedl00604-58313与Nutanix上的REST API有关的所有文档都位于以下链接:

https://www.nutanix.dev/reference/prism_element/v2/

https://www.nutanix.dev/

我希望这有帮助。:Sweat_smile:

你好阿尼什,
感谢你的回复!

我还查看了该网站,但找不到统计项目的内容。
如果您愿意,您能告诉我描述统计内容内容的URL吗?

最良好的问候。:bow_tone1:

UserLevel 6
徽章 +5

你好呀!

转到Prism Element REST API Explorer(Gear Icon下拉列表),然后在右上角选择API V1版本。

V1/ VMS/将为您提供一个统计信息的示例(解释它们是另一个故事):

“统计”:{
“ hypervisor_avg_io_latency_usecs”:“ 0”,
“ num_read_iops”:“ -1”,
“ hypervisor_write_io_io_bandwidth_kbps”:“ 0”,
“ timespan_usecs”:“ -1”,
“ controller_num_read_iops”:“ 0”,
“ controller.storage_tier.ssd.usage_bytes”:“ 756051968”,
“ read_io_ppm”:“ -1”,
“ controller_num_iops”:“ 0”,
“ hypervisor_memory_assigned_bytes”:“ -1”,
“ total_read_io_time_usecs”:“ -1”,
“ controller_total_read_io_time_usecs”:“ 0”,
“ controller.storage_tier.ssd.configured_pinned_bytes”:“ 0”,
“ hypervisor_num_io”:“ 0”,
“ controller_total_transformed_usage_bytes”:“ 0”,
“ hypervisor_cpu_usage_ppm”:“ 25226”,
“ controller_num_write_io”:“ 1”,
“ avg_read_io_latency_usecs”:“ -1”,
“ guest.memory_swapped_in_bytes”:“ 0”,
“ controller_total_io_time_usecs”:“ 1022”,
“ memory_usage_ppm”:“ 87138”,
“ controller_total_read_io_size_kbytes”:“ 0”,
“ controller_num_seq_io”:“ -1”,
“ controller_read_io_ppm”:“ 0”,
“ controller_total_io_size_kbytes”:“ 4”,
“ hypervisor.cpu_ready_time_ppm”:“ 231”,
“ controller_num_io”:“ 1”,
“ hypervisor_avg_read_io_latency_usecs”:“ 0”,
“ num_write_iops”:“ -1”,
“ controller_num_random_io”:“ 0”,
“ num_iops”:“ -1”,
“ guest.memory_usage_ppm”:“ 87138”,
“ hypervisor_num_read_io”:“ 0”,
“ hypervisor_total_read_io_time_usecs”:“ 0”,
“ controller_avg_io_latency_usecs”:“ 1022”,
“ num_io”:“ -1”,
“ controller_num_read_io”:“ 0”,
“ hypervisor_num_write_io”:“ 0”,
“ controller_seq_io_ppm”:“ -1”,
“ guest.memory_usage_bytes”:“ 711401472”,
“ controller_read_io_bandwidth_kbps”:“ 0”,
“ controller_io_bandwidth_kbps”:“ 0”,
“ hypervisor_num_received_bytes”:“ 59617”,
“ hypervisor_timespan_usecs”:“ 44193851”,
“ hypervisor_num_write_iops”:“ 0”,
“ total_read_io_size_kbytes”:“ -1”,
“ hypervisor_total_io_size_kbytes”:“ 0”,
“ avg_io_latency_usecs”:“ -1”,
“ hypervisor_num_read_iops”:“ 0”,
“ hypervisor_swap_in_rate_kbps”:“ -1”,
“ controller_write_io_bandwidth_kbps”:“ 0”,
“ controller_write_io_ppm”:“ 1000000”,
“ controler_user_bytes”:“ 48842076160”,
“ hypervisor_avg_write_io_latency_usecs”:“ 0”,
“ hypervisor_num_transmitted_bytes”:“ 444”,
“ hypervisor_total_read_io_size_kbytes”:“ 0”,
“ read_io_bandwidth_kbps”:“ -1”,
“ guest.memory_swapped_out_bytes”:“ 0”,
“ hypervisor_memory_usage_ppm”:“ 1000000”,
“ hypervisor_num_iops”:“ 0”,
“ hypervisor_io_bandwidth_kbps”:“ 0”,
“ controller_num_write_iops”:“ 0”,
“ total_io_time_usecs”:“ -1”,
“ controller_random_io_ppm”:“ -1”,
“ controller.storage_tier.das-sata.usage_bytes”:“ 83346403328”,
“ controller_avg_read_io_size_kbytes”:“ 0”,
“ hypervisor_swap_out_rate_kbps”:“ -1”,
“ total_transformed_usage_bytes”:“ -1”,
“ avg_write_io_latency_usecs”:“ -1”,
“ num_read_io”:“ -1”,
“ write_io_bandwidth_kbps”:“ -1”,
“ hypervisor_read_io_bandwidth_kbps”:“ 0”,
“ hypervisor_consumed_memory_bytes”:“ -1”,
“ rando_io_ppm”:“ -1”,
“ total_untransformed_usage_bytes”:“ -1”,
“ hypervisor_total_io_time_usecs”:“ 0”,
“ num_random_io”:“ -1”,
“ controller_avg_write_io_size_kbytes”:“ 4”,
“ controller_avg_read_io_latency_usecs”:“ 0”,
“ controller.storage_tier.das-sata.configured_pinned_bytes”:“ 0”,
“ num_write_io”:“ -1”,
“ total_io_size_kbytes”:“ -1”,
“ controller.storage_tier.cloud.usage_bytes”:“ 0”,
“ io_bandwidth_kbps”:“ -1”,
“ controler_timespan_usecs”:“ 30000000”,
“ num_seq_io”:“ -1”,
“ seq_io_ppm”:“ -1”,
“ write_io_ppm”:“ -1”,
“ controller_avg_write_io_latency_usecs”:“ 1022”
},,


你好阿洛纳,

谢谢您的答复!我能够在统计数据中获取目录!我将检查这些项目。太感谢了!

Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu