Skip to main content

optimized_stats

Creates, updates, deletes, gets or lists an optimized_stats resource.

Overview

Nameoptimized_stats
TypeResource
Idgoogle.apigee.optimized_stats

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
ResponseobjectWraps the stats response for JavaScript Optimized Scenario with a response key. For example: { "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 ] } ] } ] } } } (id: GoogleCloudApigeeV1OptimizedStatsResponse)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_environments_optimized_stats_getselectorganizationsId, environmentsId, optimizedStatsIdselect, timeUnit, timeRange, filter, sort, sortby, aggTable, limit, offset, topk, tsAscending, realtime, sonar, tzo, accuracySimilar to GetStats except that the response is less verbose.
organizations_optimized_host_stats_getselectorganizationsId, optimizedHostStatsIdselect, timeUnit, timeRange, filter, sort, sortby, limit, offset, topk, tsAscending, realtime, tzo, accuracy, envgroupHostnameSimilar to GetHostStats except that the response is less verbose.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
environmentsIdstring
optimizedHostStatsIdstring
optimizedStatsIdstring
organizationsIdstring
accuracystring
aggTablestring
envgroupHostnamestring
filterstring
limitstring
offsetstring
realtimeboolean
selectstring
sonarboolean
sortstring
sortbystring
timeRangestring
timeUnitstring
topkstring
tsAscendingboolean
tzostring

SELECT examples

Similar to GetStats except that the response is less verbose.

SELECT
Response
FROM google.apigee.optimized_stats
WHERE organizationsId = '{{ organizationsId }}' -- required
AND environmentsId = '{{ environmentsId }}' -- required
AND optimizedStatsId = '{{ optimizedStatsId }}' -- required
AND select = '{{ select }}'
AND timeUnit = '{{ timeUnit }}'
AND timeRange = '{{ timeRange }}'
AND filter = '{{ filter }}'
AND sort = '{{ sort }}'
AND sortby = '{{ sortby }}'
AND aggTable = '{{ aggTable }}'
AND limit = '{{ limit }}'
AND offset = '{{ offset }}'
AND topk = '{{ topk }}'
AND tsAscending = '{{ tsAscending }}'
AND realtime = '{{ realtime }}'
AND sonar = '{{ sonar }}'
AND tzo = '{{ tzo }}'
AND accuracy = '{{ accuracy }}';