Analytics
Personal Access Token.
Request message for ConfigureAutomationEstimates method. Configures the estimated cost and time savings for automations within a workspace.
A successful response.
Response message for ConfigureAutomationEstimates method. Returns the configured automation estimates for the workspace.
An unexpected error response.
Personal Access Token.
Optional list of workspace IDs to filter insights. Format: organizations/{organization}/workspaces/{workspace} If empty, insights for all workspaces are returned.
Optional list of automation IDs to filter insights. Format: organizations/{organization}/workspaces/{workspace}/automations/{automation} If empty, insights for all automations are returned.
The start time of the window (inclusive).
The end time of the window (inclusive).
The timezone for interpreting the time window. Format: IANA timezone identifier (e.g., "America/New_York", "Europe/London"). Defaults to "UTC" if not specified.
A successful response.
Response message for QueryInsights method. Contains aggregated analytics insights across value, runs, and completions.
An unexpected error response.
Personal Access Token.
A successful response.
Response message for QueryAutomationEstimates method. Contains automation estimates grouped by workspace.
An unexpected error response.
Personal Access Token.
The names of the metrics to query.
Identifies which metric types to retrieve data for in a single request. All metrics will use the same filter, group_by, time range, interval, and aggregation settings.
Examples: ["runs"], ["runs", "pages"], ["files", "automations"]
Filter expression to apply before aggregation.
Reduces the dataset to only records matching the filter criteria. Uses the AIP-160 filtering syntax for flexible query expressions. An empty string means no filtering (all records included).
Supported operators: =, !=, AND, OR, NOT, IN
Examples:
- 'status = "success"'
- 'status = "success" AND workspace_id = "ws_123"'
- 'status IN ["success", "pending"]'
- 'workspace_id = "ws_123" OR workspace_id = "ws_456"'
See https://google.aip.dev/160 for full syntax specification.
Tag dimensions to group results by.
Each unique combination of these tag values becomes a separate time series. An empty list means no grouping (single aggregated series).
Examples: ["status"], ["workspace_id", "status"]
Start time for the query range (inclusive).
Data points with timestamps on or after this time will be included.
End time for the query range (exclusive).
Data points with timestamps before this time will be included.
Requested time interval for aggregation.
Specifies the desired granularity for data points. The server may adjust this based on the time range or data availability.
If unspecified, the server will determine an appropriate interval.
- METRIC_INTERVAL_UNSPECIFIED: Unspecified interval. Server will determine appropriate interval.
- METRIC_INTERVAL_HOUR: Hourly aggregation.
- METRIC_INTERVAL_DAY: Daily aggregation.
- METRIC_INTERVAL_WEEK: Weekly aggregation.
- METRIC_INTERVAL_MONTH: Monthly aggregation.
METRIC_INTERVAL_UNSPECIFIEDPossible values: Aggregation function to apply to metric values.
Specifies how values should be combined within each interval.
If unspecified, defaults to COUNT.
- AGGREGATION_FUNCTION_UNSPECIFIED: Unspecified aggregation. Defaults to COUNT.
- AGGREGATION_FUNCTION_COUNT: Count of occurrences.
- AGGREGATION_FUNCTION_SUM: Sum of values.
- AGGREGATION_FUNCTION_AVG: Average of values.
- AGGREGATION_FUNCTION_MIN: Minimum value.
- AGGREGATION_FUNCTION_MAX: Maximum value.
AGGREGATION_FUNCTION_UNSPECIFIEDPossible values: Ordering for series results within each metric.
Uses AIP-132 syntax: "field_name [asc|desc]" Multiple orderings can be comma-separated.
Supported fields:
- Tag names from group_by (e.g., "workspace_id asc", "status desc")
- "value" for sorting by aggregated metric value (uses last data point)
Examples:
- "value desc" - Highest values first (e.g., top workspaces)
- "workspace_id asc" - Alphabetical by workspace ID
- "value desc, workspace_id asc" - By value descending, then workspace ascending
If unspecified, series are returned in arbitrary order.
See https://google.aip.dev/132 for full syntax specification.
Maximum number of series to return per metric.
Limits the number of time series in each metric's results. Useful with order_by for "top N" queries.
If unspecified or zero, all matching series are returned. If page_size is larger than the number of matching series, all series are returned.
Example: order_by="value desc", page_size=10 returns top 10 series.
Pagination token for retrieving the next page of series.
When a response contains more series than page_size, the next_page_token from the response can be passed here to retrieve the next page.
If empty, returns the first page of results.
See https://google.aip.dev/158 for pagination specification.
A successful response.
Response message for the QueryMetrics RPC.
Contains results for each requested metric, with time series data and metadata about the query execution.
Token for retrieving the next page of results.
If non-empty, there are more results available. Pass this value as page_token in the next request to retrieve the next page.
If empty, there are no more results (this is the last page).
When paginating, all metrics will include their next page of series.
See https://google.aip.dev/158 for pagination specification.
An unexpected error response.
Last updated
Was this helpful?

