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:

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, optimizedStatsIdaccuracy, aggTable, filter, limit, offset, realtime, select, sonar, sort, sortby, timeRange, timeUnit, topk, tsAscending, tzoSimilar to GetStats except that the response is less verbose.
organizations_optimized_host_stats_getselectorganizationsId, optimizedHostStatsIdaccuracy, envgroupHostname, filter, limit, offset, realtime, select, sort, sortby, timeRange, timeUnit, topk, tsAscending, tzoSimilar 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 accuracy = '{{ accuracy }}'
AND aggTable = '{{ aggTable }}'
AND filter = '{{ filter }}'
AND limit = '{{ limit }}'
AND offset = '{{ offset }}'
AND realtime = '{{ realtime }}'
AND select = '{{ select }}'
AND sonar = '{{ sonar }}'
AND sort = '{{ sort }}'
AND sortby = '{{ sortby }}'
AND timeRange = '{{ timeRange }}'
AND timeUnit = '{{ timeUnit }}'
AND topk = '{{ topk }}'
AND tsAscending = '{{ tsAscending }}'
AND tzo = '{{ tzo }}'
;