Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 需要GCP VM实例的启动和停止时间_Google Cloud Platform_Cloud - Fatal编程技术网

Google cloud platform 需要GCP VM实例的启动和停止时间

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

使用GoogleCloudAP,我想检索下面关于VM实例的数据

最近一个月内提供的google实例的开始时间和停止时间


有可能吗

你对谷歌云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,如果答案有用,您可以在帖子上接受,如果其他用户有类似问题,他将能够更轻松地找到信息。