Retrieve security statistics as tabular rows.
HTTP request
POST https://apigee.googleapis.com/v1/{orgenv=organizations/*/environments/*}/securityStats:queryTabularStats
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
orgenv |
Required. Should be of the form organizations/ |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "dimensions": [ string ], "metrics": [ { object ( |
Fields | |
---|---|
dimensions[] |
Required. List of dimension names to group the aggregations by. |
metrics[] |
Required. List of metrics and their aggregations. |
filter |
Filter further on specific dimension values. Follows the same grammar as custom report's filter expressions. Example, apiproxy eq 'foobar'. https://cloud.google.com/apigee/docs/api-platform/analytics/analytics-reference#filters |
timeRange |
Time range for the stats. |
pageSize |
Page size represents the number of rows. |
pageToken |
Identifies a sequence of rows. |
Response body
Encapsulates two kinds of stats that are results of the dimensions and aggregations requested. - Tabular rows. - Time series data. Example of tabular rows,
Represents security stats results as a row of flat values.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "values": [ array ], "columns": [ string ], "nextPageToken": string } |
Fields | |
---|---|
values[] |
Resultant rows from the executed query. |
columns[] |
Column names corresponding to the same order as the inner values in the stats field. |
nextPageToken |
Next page token. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform