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: Make sure there are enough events in the data set to cover the time interval: if the A duration in seconds with up to nine fractional digits, terminated by ' |
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, terminated by ' |
metricAggregationMethod |
Optional. Together with the If the metric is not specified or "", then this field will be ignored. |
minDensity |
Optional. Minimum density percentage of the input time series for it to be evaluated. Must be in the [0, 100] range. If unsure, leave this unset. |
metric |
Optional. Denotes the The aggregation method must also be specified by setting the [metricAggregationMethod][TimeseriesParams.metricAggregationMethod] field. Note: Currently, if the aggregation method is unspecified, we will default to SUM for backwards compatibility reasons, but new implementations should set the [metricAggregationMethod][TimeseriesParams.metricAggregationMethod] explicitly. 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 data set:
These events are all within the same hour, spaced 10 minutes between each of them. Assuming our The time series point which they are 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. |