TimeSeriesQuery constructor
- Input<
OpsAnalyticsQuery> ? opsAnalyticsQuery, - Input<
bool> ? outputFullDuration, - Input<
String> ? prometheusQuery, - Input<
TimeSeriesFilter> ? timeSeriesFilter, - Input<
TimeSeriesFilterRatio> ? timeSeriesFilterRatio, - Input<
String> ? timeSeriesQueryLanguage, - Input<
String> ? unitOverride,
Creates a new TimeSeriesQuery.
opsAnalyticsQuery Preview: A query used to fetch a time series, category series, or numeric series with SQL. This is a preview feature and may be subject to change before final release.
outputFullDuration Optional. If set, Cloud Monitoring will treat the full query duration as the alignment period so that there will be only 1 output value.*Note: This could override the configured alignment period except for the cases where a series of data points are expected, like - XyChart - Scorecard's spark chart
prometheusQuery A query used to fetch time series with PromQL.
timeSeriesFilter Filter parameters to fetch time series.
timeSeriesFilterRatio Parameters to fetch a ratio between two time series filters.
timeSeriesQueryLanguage A query used to fetch time series with MQL.
unitOverride The unit of data contained in fetched time series. If non-empty, this unit will override any unit that accompanies fetched data. The format is the same as the unit (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors) field in MetricDescriptor.
Implementation
const TimeSeriesQuery({
this.opsAnalyticsQuery,
this.outputFullDuration,
this.prometheusQuery,
this.timeSeriesFilter,
this.timeSeriesFilterRatio,
this.timeSeriesQueryLanguage,
this.unitOverride,
});