Google cloud platform 需要GCP VM实例的启动和停止时间
使用GoogleCloudAP,我想检索下面关于VM实例的数据 最近一个月内提供的google实例的开始时间和停止时间Google cloud platform 需要GCP VM实例的启动和停止时间,google-cloud-platform,cloud,Google Cloud Platform,Cloud,使用GoogleCloudAP,我想检索下面关于VM实例的数据 最近一个月内提供的google实例的开始时间和停止时间 有可能吗你对谷歌云AP是什么意思 另一方面,您可以在上获取VM的活动,有关所需信息,请转到云日志页面,您可以将此查询应用于启动操作: resource.type="gce_instance" "compute.instances.start" resource.type="gce_instance" "co
有可能吗你对谷歌云AP是什么意思 另一方面,您可以在上获取VM的活动,有关所需信息,请转到云日志页面,您可以将此查询应用于启动操作:
resource.type="gce_instance"
"compute.instances.start"
resource.type="gce_instance"
"compute.instances.stop"
对于停止操作:
resource.type="gce_instance"
"compute.instances.start"
resource.type="gce_instance"
"compute.instances.stop"
您可以应用日期和时间过滤器以获得更好的结果
此外,您还可以通过以下方式获得相同的信息:
gcloud日志读取“jsonPayload.event_子类型=
compute.instances.stop“
及
gcloud日志读取“jsonPayload.event_子类型=
compute.instances.start“
有关更多高级选项,请查看谢谢。这有帮助 我可以使用日志api
要检索VM资源的开始和停止时间Hi,如果答案有用,您可以在帖子上接受,如果其他用户有类似问题,他将能够更轻松地找到信息。