admin_schemav2
Creates, updates, deletes, gets or lists an admin_schemav2
resource.
Overview
Name | admin_schemav2 |
Type | Resource |
Id | google.apigee.admin_schemav2 |
Fields
The following fields are returned by SELECT
queries:
- organizations_environments_analytics_admin_get_schemav2
Successful response
Name | Datatype | Description |
---|---|---|
dimensions | array | List of schema fields grouped as dimensions. |
meta | array | Additional metadata associated with schema. This is a legacy field and usually consists of an empty array of strings. |
metrics | array | List of schema fields grouped as dimensions that can be used with an aggregate function such as sum , avg , min , and max . |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
organizations_environments_analytics_admin_get_schemav2 | select | organizationsId , environmentsId | type , disableCache | Gets a list of metrics and dimensions that can be used to create analytics queries and reports. Each schema element contains the name of the field, its associated type, and a flag indicating whether it is a standard or custom field. |
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.
Name | Datatype | Description |
---|---|---|
environmentsId | string | |
organizationsId | string | |
disableCache | boolean | |
type | string |
SELECT
examples
- organizations_environments_analytics_admin_get_schemav2
Gets a list of metrics and dimensions that can be used to create analytics queries and reports. Each schema element contains the name of the field, its associated type, and a flag indicating whether it is a standard or custom field.
SELECT
dimensions,
meta,
metrics
FROM google.apigee.admin_schemav2
WHERE organizationsId = '{{ organizationsId }}' -- required
AND environmentsId = '{{ environmentsId }}' -- required
AND type = '{{ type }}'
AND disableCache = '{{ disableCache }}';