Is it possible to query the Stackdriver v3 API for Uptime validation data?

Context

The stack monitoring monitoring docs (v3) show how to query data from specific time series

For example, a query like (formatted for readability)

GET https://monitoring.googleapis.com/v3/projects/{project_id}/timeSeries? 
filter= 
  metric.type="compute.googleapis.com/instance/cpu/usage_time" AND 
  metric.label.instance_name = "my-workstation"
&interval.endTime=2017-04-30T08:00:00.000Z 
&interval.startTime=2017-04-30T08:00:00.000Z 
&key=<key>

      

Will return the label cpu/usage_time

for my-workstation

.

Question

Can I get data from "Stack Check Time Check" using a similar API call?

For example; I have set up a Stackdriver check Uptime check to poll www.mysite.com

every minute.

I would like to extract the results of this survey from the Stackdriver Monitoring API

What is the correct filter

sending to Stackdriver Monitoring API to retrieve this data?

+3


source to share


1 answer


These metrics are not currently available through the Stack Monitoring API, but their disclosure is in our roadmap. Stay with us.



0


source







All Articles