REST Resource: organizations.environments.optimizedStats

Resource: OptimizedStats

JSON representation
{
  "Response": {
    object (OptimizedStatsResponse)
  }
}
Fields
Response

object (OptimizedStatsResponse)

This field wraps the stats response for Js Optimized Scenario with a Response key. E.g. { "Response": { "TimeUnit": [], "metaData": { "errors": [], "notices": [ "Source:Postgres", "Table used: edge.api.aaxgroup001.agg_api", "PG Host:ruappg08-ro.production.apigeeks.net", "query served by:80c4ebca-6a10-4a2e-8faf-c60c1ee306ca" ] }, "resultTruncated": false, "stats": { "data": [ { "identifier": { "names": [ "apiproxy" ], "values": [ "sirjee" ] }, "metric": [ { "env": "prod", "name": "sum(message_count)", "values": [ 36.0 ] }, { "env": "prod", "name": "sum(is_error)", "values": [ 36.0 ] } ] } ] } } }

OptimizedStatsResponse

This message type encapsulates a response format for Js Optimized Scenario

JSON representation
{
  "TimeUnit": [
    string
  ],
  "metaData": {
    object (Metadata)
  },
  "resultTruncated": boolean,
  "stats": {
    object (OptimizedStatsNode)
  }
}
Fields
TimeUnit[]

string (int64 format)

This field contains a list of time unit values. Time unit refers to an epoch timestamp value.

metaData

object (Metadata)

This field contains metadata information about the query executed

resultTruncated

boolean

This ia a boolean field to indicate if the results were truncated based on the limit parameter.

stats

object (OptimizedStatsNode)

This field contains a stats results

OptimizedStatsNode

JSON representation
{
  "data": array
}
Fields
data

array (ListValue format)

Methods

get

This api is similar to GetStats except that the response is less verbose.