Parameters that control how we construct the time series for each slice.
JSON representation |
---|
{
"forecastHistory": string,
"granularity": string,
"metricAggregationMethod": enum ( |
Fields | |
---|---|
forecastHistory |
Required. How long should we go in the past when fetching the timeline used for forecasting each slice. This is used in combination with the The forecast history might be rounded up, so that a multiple of Note: If there are not enough events in the A duration in seconds with up to nine fractional digits, ending with ' |
granularity |
Required. The time granularity of the time series (on the x-axis). Each time series point starting at time T will aggregate all events for a particular slice in [T, T + granularity) time windows. Note: The aggregation is decided based on the This granularity defines the query-time aggregation windows and is not necessarily related to any event time granularity in the raw data (though we do recommend that the query-time granularity is not finer than the ingestion-time one). Currently, the minimal supported granularity is 10 seconds. A duration in seconds with up to nine fractional digits, ending with ' |
metricAggregationMethod |
Optional. Together with the If the metric is not specified or "", then this field will be ignored. |
metric |
Optional. Denotes the The aggregation method must also be specified by setting the Note: Currently, if the aggregation method is unspecified, we will default to SUM for backward compatibility reasons, but new implementations should set the If the metric is unspecified, we will use the number of events that each time series point contains as the point value. Example: Let's assume we have the following three events in our dataset:
These events are all within the same hour, spaced 10 minutes between each of them. Assuming our The time series point that they're all part of will have the
|
AggregationMethod
Methods by which we can aggregate multiple events by a given metric
.
Enums | |
---|---|
AGGREGATION_METHOD_UNSPECIFIED |
Unspecified. |
SUM |
Aggregate multiple events by summing up the values found in the metric dimension. |
AVERAGE |
Aggregate multiple events by averaging out the values found in the metric dimension. |