- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- SchemaElement
- SchemaProperty
- Try it!
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.
HTTP request
GET https://apigee.googleapis.com/v1/{name=organizations/*/environments/*/analytics/admin/schemav2}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. Path to the schema. Use the following structure in your request: Authorization requires the following IAM permission on the specified resource
|
Query parameters
Parameters | |
---|---|
type |
Required. Name of the dataset for which you want to retrieve the schema. For example: |
disable |
Flag that specifies whether the schema is be read from the database or cache. Set to |
Request body
The request body must be empty.
Response body
Response for Schema call
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "dimensions": [ { object ( |
Fields | |
---|---|
dimensions[] |
List of schema fields grouped as dimensions. |
metrics[] |
List of schema fields grouped as dimensions that can be used with an aggregate function such as |
meta[] |
Additional metadata associated with schema. This is a legacy field and usually consists of an empty array of strings. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
SchemaElement
Message type for the schema element
JSON representation |
---|
{
"name": string,
"properties": {
object ( |
Fields | |
---|---|
name |
Name of the field. |
properties |
Properties for the schema field. For example: { "createTime": "2016-02-26T10:23:09.592Z", "custom": "false", "type": "string" } |
SchemaProperty
Properties for the schema field.
JSON representation |
---|
{ "createTime": string, "custom": string, "type": string } |
Fields | |
---|---|
create |
Time the field was created in RFC3339 string form. For example: |
custom |
Flag that specifies whether the field is standard in the dataset or a custom field created by the customer. |
type |
Data type of the field. |