List Metric Timeseries
GET {{host}}/{{version}}/{{destination_name}}/metrics
Timeseries data for all metrics for a source-destination pair.
If you have multi-instance destinations configured for your source you must send the destination configuration id of the instance you are fetching metric timeseries data for. An example in List - Multi Destination Enabled in the Example requests. To find the destinationConfigurationId navigate to the destination overview page of the destination which you are querying metrics for in the Segment app. You can retieve the destinationConfigurationId from the URL where it is configured as instances/$destinationConfigurationId/configuration
.
RESPONSES
status: OK
{"event_delivery_metrics":[{"name":"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/expired","granularity":"DAY","datapoints":[{"value":1319,"timestamp":"2019-01-20T00:00:00Z"},{"value":0,"timestamp":"2019-01-21T00:00:00Z"},{"value":0,"timestamp":"2019-01-22T00:00:00Z"},{"value":0,"timestamp":"2019-01-23T00:00:00Z"},{"value":0,"timestamp":"2019-01-24T00:00:00Z"},{"value":0,"timestamp":"2019-01-25T00:00:00Z"}],"start_time":"2019-01-20T00:00:00Z","end_time":"2019-01-25T00:00:00Z"},{"name":"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried","granularity":"DAY","datapoints":[{"value":38,"timestamp":"2019-01-20T00:00:00Z"},{"value":9,"timestamp":"2019-01-21T00:00:00Z"},{"value":20,"timestamp":"2019-01-22T00:00:00Z"},{"value":4,"timestamp":"2019-01-23T00:00:00Z"},{"value":21,"timestamp":"2019-01-24T00:00:00Z"},{"value":19,"timestamp":"2019-01-25T00:00:00Z"}],"start_time":"2019-01-20T00:00:00Z","end_time":"2019-01-25T00:00:00Z"},{"name":"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried_502","granularity":"DAY","datapoints":[{"value":9,"timestamp":"2019-01-20T00:00:00Z"},{"value":8,"timestamp":"2019-01-21T00:00:00Z"},{"value":17,"timestamp":"2019-01-22T00:00:00Z"},{"value":4,"timestamp":"2019-01-23T00:00:00Z"},{"value":10,"timestamp":"2019-01-24T00:00:00Z"},{"value":19,"timestamp":"2019-01-25T00:00:00Z"}],"start_time":"2019-01-20T00:00:00Z","end_time":"2019-01-25T00:00:00Z"},{"name":"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried_504","granularity":"DAY","datapoints":[{"value":21,"timestamp":"2019-01-20T00:00:00Z"},{"value":1,"timestamp":"2019-01-21T00:00:00Z"},{"value":2,"timestamp":"2019-01-22T00:00:00Z"},{"value":0,"timestamp":"2019-01-23T00:00:00Z"},{"value":11,"timestamp":"2019-01-24T00:00:00Z"},{"value":0,"timestamp":"2019-01-25T00:00:00Z"}],"start_time":"2019-01-20T00:00:00Z","end_time":"2019-01-25T00:00:00Z"},{"name":"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/retried_ECONNABORTED","granularity":"DAY","datapoints":[{"value":8,"timestamp":"2019-01-20T00:00:00Z"},{"value":0,"timestamp":"2019-01-21T00:00:00Z"},{"value":1,"timestamp":"2019-01-22T00:00:00Z"},{"value":0,"timestamp":"2019-01-23T00:00:00Z"},{"value":0,"timestamp":"2019-01-24T00:00:00Z"},{"value":0,"timestamp":"2019-01-25T00:00:00Z"}],"start_time":"2019-01-20T00:00:00Z","end_time":"2019-01-25T00:00:00Z"},{"name":"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/successes","granularity":"DAY","datapoints":[{"value":172615,"timestamp":"2019-01-20T00:00:00Z"},{"value":170609,"timestamp":"2019-01-21T00:00:00Z"},{"value":170668,"timestamp":"2019-01-22T00:00:00Z"},{"value":170422,"timestamp":"2019-01-23T00:00:00Z"},{"value":170519,"timestamp":"2019-01-24T00:00:00Z"},{"value":166929,"timestamp":"2019-01-25T00:00:00Z"}],"start_time":"2019-01-20T00:00:00Z","end_time":"2019-01-25T00:00:00Z"},{"name":"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/successes_after_retry","granularity":"DAY","datapoints":[{"value":3596,"timestamp":"2019-01-20T00:00:00Z"},{"value":3442,"timestamp":"2019-01-21T00:00:00Z"},{"value":4006,"timestamp":"2019-01-22T00:00:00Z"},{"value":3697,"timestamp":"2019-01-23T00:00:00Z"},{"value":3496,"timestamp":"2019-01-24T00:00:00Z"},{"value":3637,"timestamp":"2019-01-25T00:00:00Z"}],"start_time":"2019-01-20T00:00:00Z","end_time":"2019-01-25T00:00:00Z"},{"name":"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/successes_on_first_attempt","granularity":"DAY","datapoints":[{"value":169019,"timestamp":"2019-01-20T00:00:00Z"},{"value":167167,"timestamp":"2019-01-21T00:00:00Z"},{"value":166662,"timestamp":"2019-01-22T00:00:00Z"},{"value":166725,"timestamp":"2019-01-23T00:00:00Z"},{"value":167023,"timestamp":"2019-01-24T00:00:00Z"},{"value":163292,"timestamp":"2019-01-25T00:00:00Z"}],"start_time":"2019-01-20T00:00:00Z","end_time":"2019-01-25T00:00:00Z"},{"name":"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/time_to_first_attempt_average","granularity":"DAY","datapoints":[{"value":5.502818496,"timestamp":"2019-01-20T00:00:00Z"},{"value":3.706166541,"timestamp":"2019-01-21T00:00:00Z"},{"value":3.228996959,"timestamp":"2019-01-22T00:00:00Z"},{"value":3.517764604,"timestamp":"2019-01-23T00:00:00Z"},{"value":4.645016078,"timestamp":"2019-01-24T00:00:00Z"},{"value":3.495370896,"timestamp":"2019-01-25T00:00:00Z"}],"start_time":"2019-01-20T00:00:00Z","end_time":"2019-01-25T00:00:00Z"},{"name":"workspaces/myworkspace/sources/js/destinations/google-analytics/metrics/time_to_first_attempt_p95","granularity":"DAY","datapoints":[{"value":3.055067164,"timestamp":"2019-01-20T00:00:00Z"},{"value":3.063505857,"timestamp":"2019-01-21T00:00:00Z"},{"value":3.149659938,"timestamp":"2019-01-22T00:00:00Z"},{"value":3.482212419,"timestamp":"2019-01-23T00:00:00Z"},{"value":3.8428379,"timestamp":"2019-01-24T00:00:00Z"},{"value":3.453382997,"timestamp":"2019-01-25T00:00:00Z"}],"start_time":"2019-01-20T00:00:00Z","end_time":"2019-01-25T00:00:00Z"}],"next_page_token":"dGltZV90b19zdWNjZXNzX2F2ZXJhZ2U="}